|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--vrml.BaseNode | +--vrml.node.Script | +--demo.rraBattleScene.BattleScene
BridgeServer
,
PingServer
Field Summary | |
(package private) MFNode |
addBeamChildren
|
(package private) MFNode |
addChildren
|
(package private) SFVec3f |
beamTranslation
|
(package private) SFRotation |
beamYaw
|
boolean |
createVRMLThreadRunning
|
static float |
DETECT_BEAM
|
static float |
DETECT_BOTH
|
static float |
DETECT_TARGETS
|
static java.lang.String |
HOST
|
(package private) java.io.DataInputStream |
in
|
(package private) BaseNode[] |
nodes
|
(package private) java.io.DataOutputStream |
out
|
(package private) ControlPanel |
panel
|
static int |
PORT
|
(package private) MFNode |
removeBeamChildren
|
(package private) MFNode |
removeChildren
|
static float |
SET_SONAR_PARAMETERS
|
(package private) java.net.Socket |
socket
|
(package private) SFVec3f |
translation
|
(package private) SFRotation |
yaw
|
Constructor Summary | |
BattleScene()
|
Method Summary | |
void |
AddBeamChildren(BaseNode[] nodes)
This method adds the beam VRML to the scene graph |
void |
AddTargetsChildren(BaseNode[] nodes)
This method adds the target VRML to the scene graph |
void |
initialize()
This method initializes the Java script. |
void |
processEvent(Event ev)
This method processes events generated by the VRML Browser. |
void |
removeBeam()
This method decides whiche beam VRML to remove from the scene graph |
void |
RemoveBeamChildren(BaseNode[] nodes)
This method removes the beam VRML from the scene graph |
void |
RemoveTargetsChildren(BaseNode[] nodes)
This method removes the target VRML from the scene graph |
void |
setManeuver(float d,
float s,
float c)
This method is called by the control panel to set the requested maneuver in BattleScene. |
void |
setSonarParameters(float elevation,
float azimuth,
float verticalBeamWidth,
float horizontalBeamWidth,
float verticalBeamConfiguration,
float horizontalBeamConfiguration,
float verticalSearchWidth,
float horizontalSearchWidth,
float pingI,
float powerLevel)
This method is called by the control panel to set the requested sonar ping inn BattleScene. |
void |
shutdown()
This method cleans up memory and closes sockets at shutdown |
void |
sonarDetection(float order)
This method is called from the control panel to initiate a sonar ping. |
void |
tick(TimerThread t)
This method receives ticks from TimerThread and updates vehicle position in the VRML scene. |
void |
waitOnThreads()
This method is called by sonarDetection to decide if another sonar request can be made. |
Methods inherited from class vrml.node.Script |
eventsProcessed,
getEventIn,
getEventOut,
getField,
processEvents,
toString |
Methods inherited from class vrml.BaseNode |
getBrowser,
getType |
Methods inherited from class java.lang.Object |
|
Field Detail |
ControlPanel panel
MFNode addChildren
MFNode removeChildren
MFNode addBeamChildren
MFNode removeBeamChildren
SFVec3f beamTranslation
SFRotation yaw
SFVec3f translation
SFRotation beamYaw
BaseNode[] nodes
public static final int PORT
public static final java.lang.String HOST
public static final float SET_SONAR_PARAMETERS
public static final float DETECT_TARGETS
public static final float DETECT_BEAM
public static final float DETECT_BOTH
java.net.Socket socket
java.io.DataInputStream in
java.io.DataOutputStream out
public boolean createVRMLThreadRunning
Constructor Detail |
public BattleScene()
Method Detail |
public void initialize()
public void tick(TimerThread t)
public void processEvent(Event ev)
public void shutdown()
public void setManeuver(float d, float s, float c)
public void setSonarParameters(float elevation, float azimuth, float verticalBeamWidth, float horizontalBeamWidth, float verticalBeamConfiguration, float horizontalBeamConfiguration, float verticalSearchWidth, float horizontalSearchWidth, float pingI, float powerLevel)
public void waitOnThreads()
public void sonarDetection(float order)
public void AddBeamChildren(BaseNode[] nodes)
public void removeBeam()
public void RemoveBeamChildren(BaseNode[] nodes)
public void AddTargetsChildren(BaseNode[] nodes)
public void RemoveTargetsChildren(BaseNode[] nodes)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |