|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
demo.helicopter.HumanActionInterpreterTeam
Class HumanActionInterpreterTeam
DIS VRML -Z entity up Y entity up ^ ^ | | | | | | +------> X +-------> X nose of entity body ( North ) / / / / / / Y Z right-hand side of entity body ( East ) Rotation angle axes (right-hand rule applies): DIS VRML Angle of rotation Roll X X phi Pitch Y Z theta Yaw Z -Y psi
Field Summary | |
int |
COLUMN
COLUMN. |
int |
HOLD
HOLD. |
double |
JUMP
JUMP. |
double |
KNEEL
KNEEL. |
int |
LINE
LINE. |
int |
MOUNT_HELO
MOUNT_HELO. |
double |
MOUNTED
MOUNTED. |
int |
NONE
NONE. |
double |
NOTHING
NOTHING. |
double |
RUN
RUN. |
double |
STAND
STAND. |
int |
UNMOUNT_HELO
UNMOUNT_HELO. |
double |
UNMOUNTED
UNMOUNTED. |
double |
verticalOffset
verticalOffset - Meters above local terrain for entity's geometric center. |
double |
WALK
WALK. |
int |
WEDGE
WEDGE. |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
HumanActionInterpreterTeam(java.lang.String ipAddr,
int portNum,
int timeToLive,
short siteNum,
short appNum,
short idNum,
java.lang.String marking,
boolean rtpHeaderEnabled,
HumanPanel panel,
boolean independent,
BehaviorStreamBufferUDP bsb,
CollisionDetectionTerrainReader ter)
Constructor |
Method Summary | |
void |
brake()
brake - stops the Human |
void |
calculatePosition(double offset,
double angleOff)
calculatePosition - calulates the vector from the entity's current position to its goal position and orientation as determined by its rule set |
void |
checkCollision(EntityStatePdu entityPdu)
checkCollision - checks to see if two entities geomentry have intersected |
void |
checkFirePdu(FirePdu shot)
checkFirePDUs Function Works as Follows : 1. |
void |
checkForReload()
checkForReload checks for the ability to reload ammunition |
void |
collectFirePdus()
collectFirePDUs - collects the fire PDUs from the stream buffer |
void |
collectMountedPdus()
collectMountedPdus - reads the stream buffer to get the aggregation entity's latest Espdu |
void |
column()
column - the column rule set |
void |
findMagAndAng(double theXComp,
double theYComp)
findMagAndAng - finds the distance and angle to a goal position taking X and Y component offsets as arguments |
void |
findMagnitudeAndAngle(EntityStatePdu to,
EntityStatePdu from)
findMagnitudeAndAngle - finds the distance and angle to a goal position taking Espdus as arguments |
EntityStatePdu |
getEspdu()
getEspdu returns the vehicles current entity state protocol data unit |
java.lang.String |
getFrameHeaderInfo()
getFrameHeaderInfo - provides the frame header information |
boolean |
getIsCollided()
getIsCollided - returns the isCollided state boolean |
boolean |
getLiving()
getLiving - returns the active state of the entity |
EntityStatePdu |
getMountedEspdu()
getMountedEspdu returns the aggregation entity's current entity state protocol data unit |
double |
getSpeed()
getSpeed - returns the entity's speed |
void |
kneel()
kneel - Makes the Human kneel |
void |
line()
line - the line rule set |
void |
loadHelo()
loadHelo - the mount helicopter rule set |
void |
reset()
reset - handles input from the reset button |
void |
run()
run - start sending espdus calls startLiving () which is an infinite espdu sending loop |
void |
selfDestruct()
selfDestruct - causes the entity to self destruct |
void |
sendFirePdu()
sendFirePDU - send fire PDU information for hit determination |
double |
setIndependence(boolean inSquad)
setIndependence - sets the mounted state of the entity and provides the correct true or relative position |
void |
setIsCollided(boolean setValue)
setIsCollided - sets the isCollided state boolean |
void |
setLiving(boolean setValue)
setLiving - makes the entity active |
void |
setMovementOrder(int formationIndicator)
setMovementOrder - sets the active movement order to initiate group actions |
void |
setSpeed(float spd)
setSpeed - sets the speed of the entity from user input Also determines the behavior code based off speed |
void |
setTurnAngle(float turnAngle)
setTurnAngle - sets the angle of turn of the entity based off user inputs |
void |
startLiving()
startLiving loops indefinitely sending espdus every 500 ms or so. |
void |
stopRun()
stopRun - stops the simulation run for this entity |
protected void |
trace(java.lang.String pDiagnostic)
trace Guaranteed trace output routine. |
void |
unloadHelo()
unloadHelo - the unmount helicopter rule set |
void |
wedge()
wedge - the wedge rule set |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, 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 |
public double verticalOffset
public final double NOTHING
public final double STAND
public final double WALK
public final double RUN
public final double JUMP
public final double KNEEL
public final double MOUNTED
public final double UNMOUNTED
public final int COLUMN
public final int LINE
public final int WEDGE
public final int MOUNT_HELO
public final int UNMOUNT_HELO
public final int HOLD
public final int NONE
Constructor Detail |
public HumanActionInterpreterTeam(java.lang.String ipAddr, int portNum, int timeToLive, short siteNum, short appNum, short idNum, java.lang.String marking, boolean rtpHeaderEnabled, HumanPanel panel, boolean independent, BehaviorStreamBufferUDP bsb, CollisionDetectionTerrainReader ter)
Method Detail |
public void run()
public void setIsCollided(boolean setValue)
public boolean getIsCollided()
public void setLiving(boolean setValue)
public boolean getLiving()
public void setSpeed(float spd)
public double getSpeed()
public double setIndependence(boolean inSquad)
public void setTurnAngle(float turnAngle)
public EntityStatePdu getEspdu()
public EntityStatePdu getMountedEspdu()
public void startLiving()
public void column()
public void line()
public void wedge()
public void loadHelo()
public void unloadHelo()
public void calculatePosition(double offset, double angleOff)
public void stopRun()
public void setMovementOrder(int formationIndicator)
public void findMagnitudeAndAngle(EntityStatePdu to, EntityStatePdu from)
public void findMagAndAng(double theXComp, double theYComp)
public void checkForReload()
public void selfDestruct()
public java.lang.String getFrameHeaderInfo()
public void collectMountedPdus()
public void reset()
public void sendFirePdu()
public void brake()
public void kneel()
public void collectFirePdus()
public void checkFirePdu(FirePdu shot)
shot
- Fire PDU that is being checked.
public void checkCollision(EntityStatePdu entityPdu)
protected void trace(java.lang.String pDiagnostic)
Can't be static
or all entities look the same.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |