|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--pilot.States
| Field Summary | |
protected int |
currentIndex_
Because of the sliding window of states visible, this property is needed to pinpoint the index of the current state. |
protected java.util.Vector |
names_
This vector contains the names of the controls. |
protected java.util.Vector[] |
variableValues_
This array of vectors maintains the values of the control of the states. |
protected int |
windowSize_
The window size sets the number of past states that are maintained. |
| Constructor Summary | |
States()
This constructor sets the default window size and initiates the properties of this class. |
|
States(int ws)
This constructor sets a specific window size and initiates the properties of this class. |
|
| Method Summary | |
void |
addName(java.lang.String name)
The method addName adds a new control to the list of control names. |
void |
addVariableValues(java.util.Vector state)
The method addVariableValue appends a state vector to the window of states. |
int |
getCurrentIndex()
The method getCurrentIndex returns the index of the current state. |
java.util.Vector |
getLastVariableValues()
This method returns the last, the current, state vector. |
java.util.Vector |
getNames()
The method getNames returns a vector with the control names. |
java.lang.String |
getValueOf(java.lang.String controlName)
The method getValueOf returns the value of a control. |
java.util.Vector[] |
getVariableValues()
This method getVariableValues returns the complete array of state vectors. |
java.util.Vector |
getVariableValues(int index)
This method getVariableValues returns a specific state in the array of states. |
int |
getWindowSize()
The method getWindowSize returns the value of the window size of this class. |
void |
setCurrentIndex(int index)
The method setCurrentIndex sets the index that determines the current state. |
void |
setNames(java.util.Vector names)
The method setNames sets the vector of control names. |
void |
setVariableValues(int index,
java.util.Vector state)
This method setVariableValues sets one state vector in the array of states. |
void |
setVariableValues(java.util.Vector[] states)
This method setVariableValues sets the complete array of state vectors. |
void |
setWindowSize(int ws)
The method setWindowSize sets the value of the property windowSize_. |
int |
size()
The method size returns the number of controls that are maintained by an object of this class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int windowSize_
protected java.util.Vector names_
protected java.util.Vector[] variableValues_
protected int currentIndex_
| Constructor Detail |
public States()
public States(int ws)
ws - The value of the desired window size| Method Detail |
public void setWindowSize(int ws)
setWindowSize in interface StatesAndSituationsws - The value of the desired window sizepublic int getWindowSize()
getWindowSize in interface StatesAndSituationspublic void setNames(java.util.Vector names)
setNames in interface StatesAndSituationsnames - The vector with control names.public java.util.Vector getNames()
getNames in interface StatesAndSituationspublic void addName(java.lang.String name)
addName in interface StatesAndSituationsname - The name of the controlpublic void setVariableValues(java.util.Vector[] states)
states - The array of values for the state vectors.
public void setVariableValues(int index,
java.util.Vector state)
index - The index of the state.state - The state vector with the values of the controls.public java.util.Vector[] getVariableValues()
public java.util.Vector getVariableValues(int index)
index - The index value of the requested state.public void addVariableValues(java.util.Vector state)
state - The state vector with control values.public java.util.Vector getLastVariableValues()
public void setCurrentIndex(int index)
index - The index of the current state.public int getCurrentIndex()
public int size()
size in interface StatesAndSituationspublic java.lang.String getValueOf(java.lang.String controlName)
controlName - The name of the control
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||