ru.igis.omtab.ra
Class DriftRepeatAction

java.lang.Object
  extended by ru.igis.omtab.ra.ProtegeRepeatAction
      extended by ru.igis.omtab.ra.DriftRepeatAction
All Implemented Interfaces:
RepeatAction

public class DriftRepeatAction
extends ProtegeRepeatAction

Reference realisation of Repeat Action interface Simulate drift of spacial objects See Drift class

Author:
ru

Constructor Summary
DriftRepeatAction()
          Creates a new instance of DriftRepeatAction
DriftRepeatAction(Drift dr)
          Creates a new instance of DriftRepeatAction
 
Method Summary
 void fillFromProtege(edu.stanford.smi.protege.model.Instance instance, edu.stanford.smi.protege.model.KnowledgeBase kb, RuNA runa)
          Method filling information to this RepeatAction object from Protege Instance
 void removeObjects(RuNA runa)
          Method called while removing this Repeat Action object Should clear linked to it objects
 void repeat(long time)
          Method implementing periodically repeating action Here is drifting by one step
 
Methods inherited from class ru.igis.omtab.ra.ProtegeRepeatAction
addIntervalAction, getName, removeIntervalAction, setName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DriftRepeatAction

public DriftRepeatAction()
Creates a new instance of DriftRepeatAction


DriftRepeatAction

public DriftRepeatAction(Drift dr)
Creates a new instance of DriftRepeatAction

Parameters:
dr - Drift object
Method Detail

repeat

public void repeat(long time)
Method implementing periodically repeating action Here is drifting by one step

Specified by:
repeat in interface RepeatAction
Specified by:
repeat in class ProtegeRepeatAction
Parameters:
time - time elapsed between steps

fillFromProtege

public void fillFromProtege(edu.stanford.smi.protege.model.Instance instance,
                            edu.stanford.smi.protege.model.KnowledgeBase kb,
                            RuNA runa)
                     throws java.lang.Exception
Method filling information to this RepeatAction object from Protege Instance

Specified by:
fillFromProtege in class ProtegeRepeatAction
Parameters:
instance - Protege Instance describing this Repeat Action
kb - Protege Knowledge Base
runa - RuNA Object
Throws:
java.lang.Exception - -

removeObjects

public void removeObjects(RuNA runa)
Method called while removing this Repeat Action object Should clear linked to it objects

Specified by:
removeObjects in class ProtegeRepeatAction
Parameters:
runa - RuNA object