Package FAtiMA.Core.sensorEffector
Class RemoteAction
- java.lang.Object
-
- FAtiMA.Core.sensorEffector.RemoteAction
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
SpeechAct
public class RemoteAction extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String_actionTypeprotected java.lang.String_cameraAngleprotected java.lang.String_cameraShotprotected java.lang.Integer_cameraTargetprotected ActiveEmotion_emotionprotected java.lang.String_intensityprotected java.util.ArrayList<java.lang.String>_parametersprotected java.lang.String_subjectprotected java.lang.String_target
-
Constructor Summary
Constructors Constructor Description RemoteAction()Creates a new empty RemoteActionRemoteAction(AgentModel am, ValuedAction va)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidAddParameter(java.lang.String param)protected java.lang.StringcameraToXMl()java.lang.StringgetActionType()java.util.ArrayList<java.lang.String>GetParameters()java.lang.StringgetSubject()java.lang.StringgetTarget()static RemoteActionParseFromXml(java.lang.String xml)Parses a RemoteAction from a XML formatted StringvoidsetActionType(java.lang.String actionType)voidsetCameraAngle(java.lang.String cameraAngle)Sets the CameraAngle (only used because of the camera module).voidsetCameraShot(java.lang.String cameraShot)Sets the CameraShot (only used because of the camera module).voidsetCameraTarget(java.lang.Integer cameraTarget)Sets the CameraTarget (only used because of the camera module).voidsetIntensity(java.lang.String intensity)Sets the intensity of the ActionvoidsetSubject(java.lang.String subject)voidsetTarget(java.lang.String target)EventtoEvent(short actionEventType)Converts the RemoteAction to an Eventjava.lang.StringtoPlainStringMessage()Deprecated.- you should try to send the message in xml and not in plain textjava.lang.StringtoXML()
-
-
-
Field Detail
-
_subject
protected java.lang.String _subject
-
_actionType
protected java.lang.String _actionType
-
_target
protected java.lang.String _target
-
_parameters
protected java.util.ArrayList<java.lang.String> _parameters
-
_emotion
protected ActiveEmotion _emotion
-
_intensity
protected java.lang.String _intensity
-
_cameraTarget
protected java.lang.Integer _cameraTarget
-
_cameraShot
protected java.lang.String _cameraShot
-
_cameraAngle
protected java.lang.String _cameraAngle
-
-
Constructor Detail
-
RemoteAction
public RemoteAction()
Creates a new empty RemoteAction
-
RemoteAction
public RemoteAction(AgentModel am, ValuedAction va)
-
-
Method Detail
-
ParseFromXml
public static RemoteAction ParseFromXml(java.lang.String xml)
Parses a RemoteAction from a XML formatted String- Parameters:
xml- - the XML string to be parsed- Returns:
- the parsed RemoteAction
-
AddParameter
public void AddParameter(java.lang.String param)
-
GetParameters
public java.util.ArrayList<java.lang.String> GetParameters()
-
getSubject
public java.lang.String getSubject()
-
setSubject
public void setSubject(java.lang.String subject)
-
getActionType
public java.lang.String getActionType()
-
setActionType
public void setActionType(java.lang.String actionType)
-
getTarget
public java.lang.String getTarget()
-
setTarget
public void setTarget(java.lang.String target)
-
setCameraAngle
public void setCameraAngle(java.lang.String cameraAngle)
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
public void setCameraShot(java.lang.String cameraShot)
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
public void setCameraTarget(java.lang.Integer cameraTarget)
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
public void setIntensity(java.lang.String intensity)
Sets the intensity of the Action- Parameters:
intensity- - the intensity value to store
-
cameraToXMl
protected java.lang.String cameraToXMl()
-
toEvent
public Event toEvent(short actionEventType)
Converts the RemoteAction to an Event- Returns:
- the converted Event
-
toXML
public java.lang.String toXML()
-
toPlainStringMessage
public java.lang.String toPlainStringMessage()
Deprecated.- you should try to send the message in xml and not in plain text- Returns:
- string
-
-