public class SpillRepeatAction extends RepeatAction
HOUR, MINUTE, MSEC, SECOND
Constructor and Description |
---|
SpillRepeatAction()
Creates a new instance of Spill
|
SpillRepeatAction(edu.stanford.smi.protege.model.Instance inst) |
SpillRepeatAction(Spill sp)
Creates a new instance of SpillRepeatAction
|
Modifier and Type | Method and Description |
---|---|
void |
fillFromProtege(edu.stanford.smi.protege.model.Instance instance,
edu.stanford.smi.protege.model.KnowledgeBase kb)
Method filling information to this RepeatAction object
from Protege Instance
|
Spill |
getSpill() |
void |
removeObjects()
Method called while removing this Repeat Action object
Should clear created objects
|
void |
repeat(double time)
Method implementing periodically repeating action
Here is spilling by one step
|
void |
setSpill(Spill spill) |
actionPerformed, getInstance, getLifetime, getName, getPeriod, getPgid, setInstance, setLifetime, setName, setPeriod, setPgid, start, stop
public SpillRepeatAction()
public SpillRepeatAction(edu.stanford.smi.protege.model.Instance inst)
public SpillRepeatAction(Spill sp)
sp
- Spill objectpublic Spill getSpill()
public void setSpill(Spill spill)
public void repeat(double time)
repeat
in class RepeatAction
time
- time elapsed between stepspublic void fillFromProtege(edu.stanford.smi.protege.model.Instance instance, edu.stanford.smi.protege.model.KnowledgeBase kb)
fillFromProtege
in class RepeatAction
instance
- Protege Instance describing this Repeat Actionkb
- Protege Knowledge Basepublic void removeObjects()
removeObjects
in class RepeatAction