|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.lang.Thread
|
+--pilot.Sampler
| Field Summary | |
protected static JessCommunicator |
communicator_
The interface with Jess |
protected static java.util.Vector |
controls_
This property defines the collection of controls |
protected static int |
samplePeriod_
The sample period defines the time between each sample |
protected static Situations |
situations_
The situations property points to the object that manages the situations of the application |
protected static States |
states_
The states property points to the object that manages the states of the application |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
Sampler()
The constructor initializes the controls and sets the sample period to the default value. |
|
| Method Summary | |
void |
addControl(java.lang.String controlName,
java.lang.String classname,
java.lang.String type,
java.util.Vector choices)
The method addControl instantiates an object of the given control class and adds it to the collection of controls. |
JessCommunicator |
getCommunicator()
The method getCommunicator returns the communicator with Jess. |
AbstractControl |
getControlByName(java.lang.String name)
The method getControlByName returns the control which name is given. |
java.util.Vector |
getControls()
The method getControls returns the vector with instantiated controls. |
Situations |
getSituations()
The method getSituations returns the object that maintains the situations. |
States |
getStates()
The method getStates returns the object that maintains the states. |
void |
run()
The method run measures the controls every sample period. |
void |
setCommunicator(JessCommunicator communicator)
The method setCommunicator defines the communicator with Jess. |
void |
setControls(java.util.Vector controls)
The method setControl sets the method with controls. |
void |
setSituations(Situations situations)
The method setSituations defines the object that maintains the situations. |
void |
setStates(States states)
The method setStates defines the object that manages the states of the application. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static States states_
protected static Situations situations_
protected static java.util.Vector controls_
protected static JessCommunicator communicator_
protected static int samplePeriod_
| Constructor Detail |
public Sampler()
| Method Detail |
public void setStates(States states)
states - The object that manages the statespublic States getStates()
public void setSituations(Situations situations)
situations - The situations object.public Situations getSituations()
public void setControls(java.util.Vector controls)
controls - The vector with controls.public java.util.Vector getControls()
public AbstractControl getControlByName(java.lang.String name)
name - The name of the control
public void addControl(java.lang.String controlName,
java.lang.String classname,
java.lang.String type,
java.util.Vector choices)
classname - The name of the control classpublic void setCommunicator(JessCommunicator communicator)
communicator - The Jess communicator.public JessCommunicator getCommunicator()
public void run()
run in class java.lang.Thread
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||