ru.igis.omtab.ra
Class JessRepeatAction

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

public class JessRepeatAction
extends java.lang.Object
implements RepeatAction

Reference realisation of Repeat Action interface Periodically call Jess userfunction See Jess documentation

Author:
Ru

Constructor Summary
JessRepeatAction(java.lang.Object src, 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)
          Call priodically Jess userfunction and pass to it two parameters: - Object earlier passed to constructor - Elapsed time between calls in corresponding time units (hours, minutes or seconds)
 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

JessRepeatAction

public JessRepeatAction(java.lang.Object src,
                        java.lang.String auf,
                        jess.Rete engine)
                 throws jess.JessException
Creates a new instance of JessRepeatTest

Parameters:
src - - Any Object you may be whant to check in userfunction call
auf - - name of userfunction with two parameters
engine - - Rete engine
Throws:
jess.JessException - -
Method Detail

repeat

public void repeat(long time)
Call priodically Jess userfunction and pass to it two parameters: - Object earlier passed to constructor - Elapsed time between calls in corresponding time units (hours, minutes or seconds)

Specified by:
repeat in interface RepeatAction
Parameters:
time - - elapsed time in corresponding 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