|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectru.igis.omtab.ra.JessAlignmentAction
public class JessAlignmentAction
Reference realisation of Repeat Action interface Periodically check if some object is on the line joining two points or two other object (stationary) See Jess documentation
Constructor Summary | |
---|---|
JessAlignmentAction(MapOb mob,
java.lang.Object src,
float[] llps,
float bd,
java.lang.String auf,
jess.Rete engine)
Creates a new instance of JessRepeatTest |
|
JessAlignmentAction(MapOb mob,
java.lang.Object src,
MapOb mo1,
MapOb mo2,
float bd,
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 bearings from object on two other objects or points and if bearings difference become less than given one then call user function passing to it 2 parameters: - arbitrary object (may be any of three others or other at all) - Current bearings difference |
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 |
---|
public JessAlignmentAction(MapOb mob, java.lang.Object src, float[] llps, float bd, java.lang.String auf, jess.Rete engine) throws jess.JessException
mob
- - Map Object that will be crossing linesrc
- - arbitrary objectllps
- - array of two points coordinates in form [lat1, lon1, lat2, lon2]bd
- - bearings difference to check alignment (1-2 degrees may be, depend on time scale and object speed)auf
- - userfunction to call when object is on lineengine
- - Rete engine
jess.JessException
- -public JessAlignmentAction(MapOb mob, java.lang.Object src, MapOb mo1, MapOb mo2, float bd, java.lang.String auf, jess.Rete engine) throws jess.JessException
mob
- - Map Object that will be crossing linesrc
- - arbitrary objectmo1
- - First Map Objectmo2
- - Second Map Objectbd
- - bearings difference to check alignment (1-2 degrees, may be, depend on time scale and object speed)auf
- - userfunction to call when object is on lineengine
- - Rete engine
jess.JessException
- -Method Detail |
---|
public void repeat(long time)
repeat
in interface RepeatAction
time
- - elapsed time in corresponding tome unitspublic java.lang.String getName()
RepeatAction
getName
in interface RepeatAction
public void setName(java.lang.String name)
RepeatAction
setName
in interface RepeatAction
name
- new name for RA
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |