Class 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 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
      • _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
    • 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