cz.cuni.amis.pogamut.usar2004.agent.module.state
Class MissionPackageState

Package class diagram package MissionPackageState
java.lang.Object
  extended by cz.cuni.amis.pogamut.usar2004.agent.module.state.MissionPackageState

public class MissionPackageState
extends Object

State message representative for Mission package.

Author:
vejmanm

Field Summary
protected  MissionPackageMessage lastMessage
           
 
Constructor Summary
MissionPackageState()
           
 
Method Summary
 List<LinkState> GetLinkStateList()
          This parameter gives the link number that will be described by the next two parameters (Value and Torque).
 String getName()
          Name of the mission package
 double getTime()
          Timestamp form the UT since server start in seconds.
 Boolean isReady()
          Used to make sure the object is filled.
 void updateMessage(MissionPackageMessage message)
          Method used for updating the message object that provides particular properties for given type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastMessage

protected MissionPackageMessage lastMessage
Constructor Detail

MissionPackageState

public MissionPackageState()
Method Detail

updateMessage

public void updateMessage(MissionPackageMessage message)
Method used for updating the message object that provides particular properties for given type. Note that this object is created by yylex parser and contains properties for all configuration subject types. But only relevat to individual Config Subject are filled.

Parameters:
message - Mission package message from server.

getTime

public double getTime()
Timestamp form the UT since server start in seconds.

Returns:
Returns seconds elapsed from the start of the server.

isReady

public Boolean isReady()
Used to make sure the object is filled.

Returns:
Returns true if the object is filled with State message.

getName

public String getName()
Name of the mission package


GetLinkStateList

public List<LinkState> GetLinkStateList()
This parameter gives the link number that will be described by the next two parameters (Value and Torque). Please note that you will have as many as these parameters as you have links. VALUE parameter has two possible meanings. If the link being described is a prismatic joint, double gives the distance (in meters) from the original position of the link. If the link being described is a revolute joint, it gives a sector(probably). The TORQUE parameter gives the current torque of the link being described. * All of the above are collected into one data structure below this text.

Returns:
Returns collection of Link States.


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