public abstract class AbstractDisplayAgent extends SimulationAgent
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isPausedSimulation |
myEnvironmentModel, mySensor| Constructor and Description |
|---|
AbstractDisplayAgent()
Instantiates a new visualisation agent for an EnvironmentModel.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterClone() |
protected void |
afterMove() |
protected void |
beforeMove() |
protected abstract EnvironmentController |
createNewEnvironmentController()
Returns a new environment controller that depends on the actual EnvironmentModel.
|
protected EnvironmentController |
getEnvironmentController()
Returns the current EnvironmentController.
|
protected javax.swing.JFrame |
getJFrameStandalone()
Gets an independent frame in order to display the current environment model.
|
boolean |
isAgentGuiEmbedded()
Checks if is the current display is embedded into the Agent.GUI main window.
|
protected void |
registerAsDisplayAgent()
Register this agent as DisplayAgent at the SimulationServie.
|
protected void |
removeTimeModelDisplay()
Removes the time model display.
|
void |
setAgentGuiEmbedded(boolean isAgentGuiEmbedded)
Sets the Agent.GUI embedded.
|
protected void |
setEnvironmentController(EnvironmentController newEnvironmentController)
Sets the current EnvironmentController of the agent.
|
void |
setPauseSimulation(boolean isPauseSimulation)
This method will be used by the ServiceActuator (class) to inform
that the simulation is paused or not.
|
protected void |
setTimeModelDisplay(TimeModel timeModel)
Sets the time model display.
|
protected void |
setup() |
protected void |
takeDown() |
protected void |
unregisterAsDisplayAgent()
Unregister this agent as DisplayAgent at the SimulationServie.
|
addSimulationServiceListener, beforeClone, checkAndActOnEnvironmentChanges, deregisterDFService, findAgentsByServiceType, getEnvironmentModelFromSimulationService, onEnvironmentNotification, onEnvironmentStimulus, registerDFService, removeSimulationServiceListener, sendAgentNotification, sendDisplayAgentNotification, sendManagerNotification, sensorPlugIn, sensorPlugOut, setEnvironmentModel, setMyStimulusAnswer, setNotificationaddBehaviour, blockingReceive, blockingReceive, blockingReceive, blockingReceive, changeStateTo, clean, createMessageQueue, doActivate, doClone, doDelete, doMove, doSuspend, doTimeOut, doWait, doWait, doWake, getAgentState, getAID, getAID, getAMS, getArguments, getBehavioursCnt, getBootProperties, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getExecutedBehavioursCnt, getHap, getHelper, getLocalName, getName, getO2AInterface, getO2AObject, getPostedMessagesCnt, getProperty, getQueueSize, getReceivedMessagesCnt, getState, here, isAlive, isRestarting, join, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, receive, receive, registerO2AInterface, removeBehaviour, removeTimer, restartLater, restore, restoreBufferedState, run, send, setArguments, setEnabledO2ACommunication, setGenerateBehaviourEvents, setO2AManager, setQueueSize, waitUntilStarted, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoDelete, getAID, setMigrationpublic AbstractDisplayAgent()
protected void setup()
setup in class SimulationAgentprotected abstract EnvironmentController createNewEnvironmentController()
protected void setEnvironmentController(EnvironmentController newEnvironmentController)
newEnvironmentController - the new environment controllerEnvironmentController.setDisplayAgent(AbstractDisplayAgent)protected EnvironmentController getEnvironmentController()
createNewEnvironmentController() and will set this agent as the
controlling instance of the EnvironmentController.createNewEnvironmentController(),
EnvironmentController.setDisplayAgent(AbstractDisplayAgent)protected void takeDown()
takeDown in class SimulationAgentprotected void beforeMove()
beforeMove in class SimulationAgentprotected void afterMove()
afterMove in class SimulationAgentprotected void afterClone()
afterClone in class SimulationAgentpublic void setPauseSimulation(boolean isPauseSimulation)
ServiceSensorInterfaceisPauseSimulation - the new pause simulationprotected void registerAsDisplayAgent()
protected void unregisterAsDisplayAgent()
public void setAgentGuiEmbedded(boolean isAgentGuiEmbedded)
isAgentGuiEmbedded - the new agent gui embededpublic boolean isAgentGuiEmbedded()
protected javax.swing.JFrame getJFrameStandalone()
protected void setTimeModelDisplay(TimeModel timeModel)
protected void removeTimeModelDisplay()