cz.cuni.amis.pogamut.usar2004.agent.module.response
Class ResponseCamera

Package class diagram package ResponseCamera
java.lang.Object
  extended by cz.cuni.amis.pogamut.usar2004.agent.module.response.SuperResponse
      extended by cz.cuni.amis.pogamut.usar2004.agent.module.response.ResponseCamera

public class ResponseCamera
extends SuperResponse

After a SET {Type ResponseCamera} command, follwing response message will be issued

Author:
vejmanm

Field Summary
static ResponseType type
           
 
Fields inherited from class cz.cuni.amis.pogamut.usar2004.agent.module.response.SuperResponse
lastMessage
 
Constructor Summary
ResponseCamera()
          Ctor.
 
Method Summary
 String getFOVAt(int index)
          Each value is the current field of view of the camera being described, in radians.
 String getNameAt(int index)
          Name of the camera that will be described by the next two parameters: FOV and Status.
 int getSize()
          Returns size of names list - size of FOVs and Statuses should be the same.
 String getStatusAt(int index)
          Status of the viewport configuration after the SET command has been issued.
 
Methods inherited from class cz.cuni.amis.pogamut.usar2004.agent.module.response.SuperResponse
getResponseType, getTime, getType, isReady, updateMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

public static final ResponseType type
Constructor Detail

ResponseCamera

public ResponseCamera()
Ctor. Response type describes particular subject about which we want to know about. It is used to distinguish incoming message from the server.

Method Detail

getNameAt

public String getNameAt(int index)
Name of the camera that will be described by the next two parameters: FOV and Status.

Parameters:
index -
Returns:
Returns name of camera at given index.

getFOVAt

public String getFOVAt(int index)
Each value is the current field of view of the camera being described, in radians. The current field of view is the field of view after a SET {Type Camera} has been issued.

Parameters:
index -
Returns:
Returns field of view of camera at given index.

getStatusAt

public String getStatusAt(int index)
Status of the viewport configuration after the SET command has been issued. The status will be “OK” when the viewport configuration was successfully changed. Otherwise, the status will be “Failed”. List of statuses is also used when setting cameras. Each value is then the status for the camera’s field of view after the SET command has been issued. The status will be “OK” when the camera’s field of view was successfully changed. Otherwise, the status will be “Failed”. When responsing to SET command for sensor or effecter, single value describing the status of the transaction will be present in the list.

Parameters:
index -
Returns:
Returns status result at given index.

getSize

public int getSize()
Returns size of names list - size of FOVs and Statuses should be the same.

Returns:
Returns size of names list.


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.