Class RemoteAction

java.lang.Object
FAtiMA.Core.sensorEffector.RemoteAction
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SpeechAct

public class RemoteAction extends Object implements Serializable
See Also:
  • Field Details

    • _subject

      protected String _subject
    • _actionType

      protected String _actionType
    • _target

      protected String _target
    • _parameters

      protected ArrayList<String> _parameters
    • _emotion

      protected ActiveEmotion _emotion
    • _intensity

      protected String _intensity
    • _cameraTarget

      protected Integer _cameraTarget
    • _cameraShot

      protected String _cameraShot
    • _cameraAngle

      protected String _cameraAngle
  • Constructor Details

    • RemoteAction

      public RemoteAction()
      Creates a new empty RemoteAction
    • RemoteAction

      public RemoteAction(AgentModel am, ValuedAction va)
  • Method Details

    • ParseFromXml

      public static RemoteAction ParseFromXml(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(String param)
    • GetParameters

      public ArrayList<String> GetParameters()
    • getSubject

      public String getSubject()
    • setSubject

      public void setSubject(String subject)
    • getActionType

      public String getActionType()
    • setActionType

      public void setActionType(String actionType)
    • getTarget

      public String getTarget()
    • setTarget

      public void setTarget(String target)
    • setCameraAngle

      public void setCameraAngle(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(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(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(String intensity)
      Sets the intensity of the Action
      Parameters:
      intensity - - the intensity value to store
    • cameraToXMl

      protected String cameraToXMl()
    • toEvent

      public Event toEvent(short actionEventType)
      Converts the RemoteAction to an Event
      Returns:
      the converted Event
    • toXML

      public String toXML()
    • toPlainStringMessage

      public String toPlainStringMessage()
      Deprecated.
      - you should try to send the message in xml and not in plain text
      Returns:
      string