cz.cuni.amis.pogamut.usar2004.agent.module.configuration
Class ConfigEffecter

Package class diagram package ConfigEffecter
java.lang.Object
  extended by cz.cuni.amis.pogamut.usar2004.agent.module.configuration.SuperConfiguration
      extended by cz.cuni.amis.pogamut.usar2004.agent.module.configuration.ConfigEffecter

public class ConfigEffecter
extends SuperConfiguration

Configuration message representative for Effecters.

Author:
vejmanm

Field Summary
static ConfigType type
           
 
Fields inherited from class cz.cuni.amis.pogamut.usar2004.agent.module.configuration.SuperConfiguration
confType, lastMessage
 
Constructor Summary
ConfigEffecter()
          Ctor.
 
Method Summary
 int getMaxValsLength()
          Returns lenght of Maximal values list.
 double getMaxValueAt(int index)
          It is value that indicates the upper bound for the value that is accepted by the effecter.
 int getMinValsLength()
          Returns lenght of Minimal values list.
 double getMinValueAt(int index)
          It is value that indicates the lower bound for the value that is accepted by the effecter.
 String getOpcodeAt(int index)
          For an effector, the configuration message can contain multiple OpCodes.
 int getOpcodesLength()
          Returns length of Opcode list.
 
Methods inherited from class cz.cuni.amis.pogamut.usar2004.agent.module.configuration.SuperConfiguration
getConfigType, getFeatureNames, getFeatures, getFeatureSize, getFeatureValueBy, getName, 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 ConfigType type
Constructor Detail

ConfigEffecter

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

Method Detail

getOpcodeAt

public String getOpcodeAt(int index)
For an effector, the configuration message can contain multiple OpCodes. Opcode value is the name of the opcode that the effecter implements. Refer to Section 8 of USARSim Manual v3.1.3 for a list of the opcodes. NOTE: An effecter can implement more than one opcode and the CONF message returns the configuration information for all effecters on the robotic platform. Therefore the segment with the name value pair indicates a new effecter and the opcode name value pair indicates the opcode the effecter specified in by name implements.

Parameters:
index -
Returns:
Returns Operation Code at given index.

getMaxValueAt

public double getMaxValueAt(int index)
It is value that indicates the upper bound for the value that is accepted by the effecter.

Parameters:
index -
Returns:
Returns Max value at given index.

getMinValueAt

public double getMinValueAt(int index)
It is value that indicates the lower bound for the value that is accepted by the effecter.

Parameters:
index -
Returns:
Returns Minx value at given index.

getOpcodesLength

public int getOpcodesLength()
Returns length of Opcode list.

Returns:
Returns length of Opcode list.

getMinValsLength

public int getMinValsLength()
Returns lenght of Minimal values list.

Returns:
Returns lenght of Minimal values list.

getMaxValsLength

public int getMaxValsLength()
Returns lenght of Maximal values list.

Returns:
Returns lenght of Maximal values list.


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