|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcdx.StateTable
public class StateTable
The class StateTable records the state of the previous frame. Allocated CallSign objects and Vector3d objects for positions are held in mission memory.
Field Summary | |
---|---|
CallSign[] |
allocatedCallSigns
The pre-allocated callsigns |
Vector3d[] |
allocatedVectors
The pre-allocated vectors |
int |
usedSlots
To record the used pairs of callsign/vector |
Constructor Summary | |
---|---|
StateTable()
Constructor that initialise CHahsMap, callsign and vectors. |
Method Summary | |
---|---|
Vector3d |
get(CallSign callsign)
Method to return a position by its callsign |
java.util.Set |
getCallSigns()
Return a set of all callsigns |
void |
put(CallSign callsign,
float x,
float y,
float z)
Put a callsign and the related vector(x,y,z) into the StateTable. |
Vector3d |
remove(CallSign callsign)
Method to remove a postion from the StateTable by its callsign |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public CallSign[] allocatedCallSigns
public Vector3d[] allocatedVectors
public int usedSlots
Constructor Detail |
---|
public StateTable()
Method Detail |
---|
public java.util.Set getCallSigns()
public void put(CallSign callsign, float x, float y, float z)
callsign
- a callsign of aircraftx
- x axis of the postiony
- y axis of the positionz
- z axis of the positionpublic Vector3d get(CallSign callsign)
callsign
- the callsign for aircraft
public Vector3d remove(CallSign callsign)
callsign
- the aircraft to be removed from the table
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |