public class XMLSensor extends AbstractSensor
IParticipant.State
Modifier and Type | Field and Description |
---|---|
protected java.util.List<org.w3c.dom.Element> |
_pendingTimeFrames |
protected XMLProcessor |
_processor |
protected java.util.concurrent.ExecutorService |
_service |
static java.lang.String |
DATA_URL |
Constructor and Description |
---|
XMLSensor() |
Modifier and Type | Method and Description |
---|---|
void |
configure(java.util.Map<java.lang.String,java.lang.String> options)
configure the participant.
|
void |
executeFrameNow(org.w3c.dom.Element element)
will process the frame data immediately in the current thread.
|
java.lang.String |
getName() |
boolean |
hasPendingTimeFrames() |
void |
initialize()
called in response to a command from Reality to get everything ready to
run.
|
protected void |
load(java.lang.String dataURI) |
void |
load(java.net.URL resource) |
void |
queueFrame(org.w3c.dom.Element element) |
void |
queueNextFrame() |
void |
shutdown()
shutdown the participant if it is stopped and disconnect
|
void |
start()
called to actually start this participant
|
void |
stop()
called when this participant needs to stop
|
agentAdded, agentRemoved, agentUpdated, connect, createAfferentObjectManager, createAgentObjectManager, createEfferentObjectManager, createRealObjectManager, createSensor, disconnect, getAddressingInformation, getAfferentObjectManager, getCredentials, getEfferentObjectManager, getInterfacedAgents, getRealObjectManager, isInterfacedAgent, setCredentials, setIdentifier, shouldInterface
addClientService, addServerService, checkState, clearObjectManagers, createEfferentCommandManager, createIOExecutorService, createIOHandler, createNotificationManager, createSensorObjectManager, disconnect, getAgentObjectManager, getCentralThreadFactory, getClock, getCommonRealityIdentifier, getEfferentCommandManager, getIdentifier, getIOExecutor, getIOHandler, getIOThreadFactory, getNotificationManager, getPeriodicExecutor, getSensorObjectManager, getServerAddressInformation, getState, reset, resume, send, setClock, setCommonRealityIdentifier, shutdown, stateMatches, suspend, waitForState, waitForState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
disconnect, getAgentObjectManager, getClock, getEfferentCommandManager, getNotificationManager, getSensorObjectManager, getState, reset, resume, send, shutdown, stateMatches, suspend, waitForState, waitForState
getIdentifier
public static final java.lang.String DATA_URL
protected java.util.List<org.w3c.dom.Element> _pendingTimeFrames
protected XMLProcessor _processor
protected java.util.concurrent.ExecutorService _service
public java.lang.String getName()
getName
in class AbstractParticipant
AbstractParticipant.getName()
public boolean hasPendingTimeFrames()
public void queueNextFrame()
public void start() throws java.lang.Exception
AbstractParticipant
start
in interface IParticipant
start
in class AbstractParticipant
java.lang.Exception
public void stop() throws java.lang.Exception
AbstractParticipant
stop
in interface IParticipant
stop
in class AbstractParticipant
java.lang.Exception
public void shutdown() throws java.lang.Exception
IParticipant
shutdown
in interface IParticipant
shutdown
in class AbstractSensor
java.lang.Exception
public void configure(java.util.Map<java.lang.String,java.lang.String> options) throws java.lang.Exception
IParticipant
configure
in interface IParticipant
configure
in class AbstractParticipant
java.lang.Exception
public void queueFrame(org.w3c.dom.Element element)
public void executeFrameNow(org.w3c.dom.Element element)
element
- public void initialize() throws java.lang.Exception
AbstractParticipant
initialize
in interface IParticipant
initialize
in class AbstractParticipant
java.lang.Exception
public void load(java.net.URL resource)
protected void load(java.lang.String dataURI)