ru.igis.omtab.ra
Class JessEncounterAction

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

public class JessEncounterAction
extends java.lang.Object
implements RepeatAction

Reference realisation of Repeat Action interface Periodically check encounter between two object See Jess documentation

Author:
Ru

Constructor Summary
JessEncounterAction(MapOb o1, MapOb o2, float r, java.lang.String auf, jess.Rete engine)
          Creates a new instance of JessRepeatTest
 
Method Summary
 java.lang.String getName()
          Every RepeatAction must return a string name to search it in Second, Hour or Day Action lists
 void repeat(long time)
          Periodically check distance between objects or jerky change of bearings from first object on second and call user function passing to it 3 parameters: - First Map Object - Second Map Object - Current distance between them
 void setName(java.lang.String name)
          You can set name for this RepeatAction with a help of this method
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JessEncounterAction

public JessEncounterAction(MapOb o1,
                           MapOb o2,
                           float r,
                           java.lang.String auf,
                           jess.Rete engine)
                    throws jess.JessException
Creates a new instance of JessRepeatTest

Parameters:
o1 - - Map Object one
o2 - - Map Object two
r - - radius between object when they considered encountered
auf - - Jess userfunction with 3 parameters to call when they encountered
engine - - Rete engine
Throws:
jess.JessException - -
Method Detail

repeat

public void repeat(long time)
Periodically check distance between objects or jerky change of bearings from first object on second and call user function passing to it 3 parameters: - First Map Object - Second Map Object - Current distance between them

Specified by:
repeat in interface RepeatAction
Parameters:
time - - elapsed time in corresponding tome units

getName

public java.lang.String getName()
Description copied from interface: RepeatAction
Every RepeatAction must return a string name to search it in Second, Hour or Day Action lists

Specified by:
getName in interface RepeatAction
Returns:
Some string

setName

public void setName(java.lang.String name)
Description copied from interface: RepeatAction
You can set name for this RepeatAction with a help of this method

Specified by:
setName in interface RepeatAction
Parameters:
name - new name for RA