|
Boeing Simulation 3.1 API Specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--connect.socket.SocketComponentTemplate
|
+--mission.SocketMissionControlTemplate
A socket based implementation of the MissionControl
component that is meant to be used with the template pattern. This
implementaion leave the decision making to the extending class.
| Field Summary | |
private static long |
serialVersionUID
|
private boolean |
serverConnected
If we are currently connected to a component of the specified type. |
protected util.ConsumerQueue |
serverQueue
All objects read in from a requested connection are put into this queue structure. |
protected util.Queue |
toServer
Queue structure to hold objects waiting to be written out. |
protected util.Queue |
toUAV
Queue structure to hold objects waiting to be written out. |
protected util.Queue |
toUCAV
Queue structure to hold objects waiting to be written out. |
private boolean |
uavConnected
If we are currently connected to a component of the specified type. |
protected util.ConsumerQueue |
uavQueue
All objects read in from a requested connection are put into this queue structure. |
private connect.SupplierChannel |
uavSupplierChannel
All requests to remote components are written out this channel. |
private boolean |
ucavConnected
If we are currently connected to a component of the specified type. |
protected util.ConsumerQueue |
ucavQueue
All objects read in from a requested connection are put into this queue structure. |
private connect.SupplierChannel |
ucavSupplierChannel
All requests to remote components are written out this channel. |
| Fields inherited from class connect.socket.SocketComponentTemplate |
portNumber |
| Constructor Summary | |
SocketMissionControlTemplate(int port)
|
|
| Method Summary | |
abstract boolean |
abortMission(mission.Mission request)
Stops the processing of the specified Mission, and
returns whether the stop command issue was successful. |
boolean |
accept(Class requestingType)
This component does not accept any requested connections. |
protected boolean |
allowMethod(util.MethodRequest request)
Return true if we accept the request from the remote component. |
abstract Set |
getCurrentMissions()
Return a List of all MissionHandle objects
that can be used to access any Mission currently being
executed. |
protected int |
getMaxPoints()
Returns 1 so that a single RelayPoint may be created. |
abstract mission.MissionStatus |
getMissionStatus(mission.MissionHandle handle)
Return the status of the mission associated with that handle. |
void |
processAcceptedConnection(Class hostType,
connect.ChannelBundle acceptedConnection)
Process the connection to the Server, UCAVManager or UAVManager components. |
abstract mission.MissionHandle |
processMission(mission.Mission request)
Determine if this Mission is feasible, then coordinate
resources until it is finished. |
void |
processRequestingConnection(connect.ComponentEmissary requestingType,
connect.ChannelBundle incomingConnection)
No components cannot connect, therefore this method is not used. |
protected void |
processServer(connect.ChannelBundle serverChannels)
Start a Thread listening on each channel. |
protected void |
processUAVManager(connect.ChannelBundle uavChannels)
Start a Thread listening on each channel. |
protected void |
processUCAVManager(connect.ChannelBundle ucavChannels)
Start a Thread listening on each channel. |
protected void |
startListeningThread(util.ConsumerQueue inputQueue,
util.Queue outputQueue)
Dequeue MethodRequest objects on the specified
ConsumerQueue and then enqueue the ReturnValue on the
specified Queue. |
protected void |
writeOutComponentRequests()
Writes out requests to the Server for the
CreatesConnection for the UAVManager and UCAVManager components. |
| Methods inherited from class connect.socket.SocketComponentTemplate |
connect, getComponentEmissary, getConnection, processRelayPoint, spawnRelayPoint |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final long serialVersionUID
private boolean serverConnected
private boolean uavConnected
private boolean ucavConnected
protected util.ConsumerQueue serverQueue
protected util.ConsumerQueue ucavQueue
protected util.ConsumerQueue uavQueue
protected final util.Queue toServer
protected final util.Queue toUCAV
protected final util.Queue toUAV
private connect.SupplierChannel ucavSupplierChannel
private connect.SupplierChannel uavSupplierChannel
| Constructor Detail |
public SocketMissionControlTemplate(int port)
| Method Detail |
public void processRequestingConnection(connect.ComponentEmissary requestingType,
connect.ChannelBundle incomingConnection)
processRequestingConnection in class SocketComponentTemplate
public void processAcceptedConnection(Class hostType,
connect.ChannelBundle acceptedConnection)
Server, UCAVManager or UAVManager components. This will
entail reading in MethodRequest objects and then
invoking them if we allow them.
processAcceptedConnection in class SocketComponentTemplatepublic boolean accept(Class requestingType)
accept in class SocketComponentTemplateprotected int getMaxPoints()
RelayPoint may be created.
getMaxPoints in class SocketComponentTemplateSocketComponentTemplate.spawnRelayPoint(int)protected void processServer(connect.ChannelBundle serverChannels)
Thread listening on each channel.
protected void writeOutComponentRequests()
Server for the
CreatesConnection for the UAVManager and UCAVManager components.
protected void processUCAVManager(connect.ChannelBundle ucavChannels)
Thread listening on each channel.
protected void processUAVManager(connect.ChannelBundle uavChannels)
Thread listening on each channel.
protected void startListeningThread(util.ConsumerQueue inputQueue,
util.Queue outputQueue)
MethodRequest objects on the specified
ConsumerQueue and then enqueue the ReturnValue on the
specified Queue.
protected boolean allowMethod(util.MethodRequest request)
allowMethod in class SocketComponentTemplatepublic abstract boolean abortMission(mission.Mission request)
MissionControlMission, and
returns whether the stop command issue was successful.
abortMission in interface MissionControlpublic abstract Set getCurrentMissions()
MissionControlList of all MissionHandle objects
that can be used to access any Mission currently being
executed.
getCurrentMissions in interface MissionControlpublic abstract mission.MissionStatus getMissionStatus(mission.MissionHandle handle)
MissionControl
getMissionStatus in interface MissionControlpublic abstract mission.MissionHandle processMission(mission.Mission request)
MissionControlMission is feasible, then coordinate
resources until it is finished. Return the MissionHandle that will be associate with it.
processMission in interface MissionControl
|
Boeing Simulation 3.1 API Specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||