Package FAtiMA.Core.sensorEffector
Class RemoteAction
java.lang.Object
FAtiMA.Core.sensorEffector.RemoteAction
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SpeechAct
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new empty RemoteActionRemoteAction(AgentModel am, ValuedAction va) -
Method Summary
Modifier and TypeMethodDescriptionvoidAddParameter(String param) protected Stringstatic RemoteActionParseFromXml(String xml) Parses a RemoteAction from a XML formatted StringvoidsetActionType(String actionType) voidsetCameraAngle(String cameraAngle) Sets the CameraAngle (only used because of the camera module).voidsetCameraShot(String cameraShot) Sets the CameraShot (only used because of the camera module).voidsetCameraTarget(Integer cameraTarget) Sets the CameraTarget (only used because of the camera module).voidsetIntensity(String intensity) Sets the intensity of the ActionvoidsetSubject(String subject) voidtoEvent(short actionEventType) Converts the RemoteAction to an EventDeprecated.- you should try to send the message in xml and not in plain texttoXML()
-
Field Details
-
_subject
-
_actionType
-
_target
-
_parameters
-
_emotion
-
_intensity
-
_cameraTarget
-
_cameraShot
-
_cameraAngle
-
-
Constructor Details
-
RemoteAction
public RemoteAction()Creates a new empty RemoteAction -
RemoteAction
-
-
Method Details
-
ParseFromXml
Parses a RemoteAction from a XML formatted String- Parameters:
xml- - the XML string to be parsed- Returns:
- the parsed RemoteAction
-
AddParameter
-
GetParameters
-
getSubject
-
setSubject
-
getActionType
-
setActionType
-
getTarget
-
setTarget
-
setCameraAngle
Sets the CameraAngle (only used because of the camera module). This information is used to decide where to put the camera when the character is acting.- Parameters:
cameraAngle- - the angle used for the camera
-
setCameraShot
Sets the CameraShot (only used because of the camera module). This information is used to decide where to put the camera when the character is acting.- Parameters:
cameraShot- - the type of shot used for the camera
-
setCameraTarget
Sets the CameraTarget (only used because of the camera module). This information is used to decide where to point the camera when the character is acting. Should we film the subject or the target of the action?- Parameters:
cameraTarget- - the character that we will film while the action is performed
-
setIntensity
Sets the intensity of the Action- Parameters:
intensity- - the intensity value to store
-
cameraToXMl
-
toEvent
Converts the RemoteAction to an Event- Returns:
- the converted Event
-
toXML
-
toPlainStringMessage
Deprecated.- you should try to send the message in xml and not in plain text- Returns:
- string
-