Package FAtiMA.Core.sensorEffector
Class IONRemoteAgent
java.lang.Object
java.lang.Thread
FAtiMA.Core.util.parsers.SocketListener
FAtiMA.Core.sensorEffector.RemoteAgent
FAtiMA.Core.sensorEffector.IONRemoteAgent
- All Implemented Interfaces:
Runnable
Connection to the ION Framework's virtual world as a RemoteAgent. Implements
the architecture Sensors and Effectors
- Author:
- Joao Dias
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class FAtiMA.Core.sensorEffector.RemoteAgent
_actions, _agent, _canAct, _currentAction, _lookAtList, _processActionStrategy, _running, _userName, ACTION_FAILED, ACTION_FINISHED, ACTION_STARTED, ADVANCE_TIME, AGENTS, CANCEL_ACTION, CMD, ENTITY_ADDED, ENTITY_REMOVED, GET_STATE, IDENTIFY_USER, LOOK_AT, PROPERTY_CHANGED, PROPERTY_REMOVED, RESUME_TIME, SET_STATE, SHUTDOWN, STOP_TIME, USER_SPEECHFields inherited from class FAtiMA.Core.util.parsers.SocketListener
maxSize, socket, stoppedFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionIONRemoteAgent(String host, int port, AgentCore agent) Creates the IONRemoteAgent which tries to connect to the ION Framework -
Method Summary
Modifier and TypeMethodDescriptionprotected voidActionFailedPerception(String perc) protected voidprotected voidgetInitializationMessage(Map<String, String> arguments) voidprotected voidprotected voidvoidReportInternalPropertyChange(String agentName, Name property, Object value) protected booleanprotected voidprotected voidUserSpeechPerception(String perc) Methods inherited from class FAtiMA.Core.sensorEffector.RemoteAgent
AddAction, AdvanceTimePerception, AgentsPerception, cancelAction, Clear, CmdPerception, EntityAddedPerception, EntityRemovedPerception, ExecuteNextAction, ExpressEmotion, FinishedExecuting, IdentifyUserPerception, isRunning, isShutDown, LoadState, LookAtPerception, processMessage, ReportInternalState, ResumeTimePerception, SaveState, Send, SendEmotionalState, setProcessActionStrategy, ShutDown, ShutDownPerception, StartAction, StopTimePerception, waitForServerAckMethods inherited from class FAtiMA.Core.util.parsers.SocketListener
close, initializeSocket, isStopped, runMethods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
IONRemoteAgent
public IONRemoteAgent(String host, int port, AgentCore agent) throws UnknownHostException, IOException Creates the IONRemoteAgent which tries to connect to the ION Framework- Parameters:
host- - the host where the virtual world is runningport- - the socket port where the agent should try to connectagent- - a reference to the agent that needs this remote connection- Throws:
UnknownHostException- - thrown if the agent cannot connect to the serverIOException- - thrown if there are problems reading or writting to the connection socket
-
-
Method Details
-
getInitializationMessage
- Specified by:
getInitializationMessagein classRemoteAgent
-
SendAction
- Specified by:
SendActionin classRemoteAgent
-
sendCancelActionMsg
- Specified by:
sendCancelActionMsgin classRemoteAgent
-
ReportInternalPropertyChange
- Specified by:
ReportInternalPropertyChangein classRemoteAgent
-
PropertyChangedPerception
- Specified by:
PropertyChangedPerceptionin classRemoteAgent
-
PropertyRemovedPerception
- Specified by:
PropertyRemovedPerceptionin classRemoteAgent
-
UserSpeechPerception
- Specified by:
UserSpeechPerceptionin classRemoteAgent
-
ActionStartedPerception
- Specified by:
ActionStartedPerceptionin classRemoteAgent
-
ActionFinishedPerception
- Specified by:
ActionFinishedPerceptionin classRemoteAgent
-
ActionFailedPerception
- Specified by:
ActionFailedPerceptionin classRemoteAgent
-
handleSocketException
public void handleSocketException()- Specified by:
handleSocketExceptionin classSocketListener
-