commlib.information
クラス PositionInformation

java.lang.Object
  上位を拡張 commlib.message.RCRSCSMessage
      上位を拡張 commlib.information.WorldInformation
          上位を拡張 commlib.information.PositionInformation
すべての実装されたインタフェース:
IMessage

public class PositionInformation
extends WorldInformation

The class represent the location information of rescue agent.

作成者:
takefumi

コンストラクタの概要
PositionInformation(int time, rescuecore2.worldmodel.EntityID platoonID, rescuecore2.misc.Pair<java.lang.Integer,java.lang.Integer> cor)
          Constructor Create the information of the agent's location.
PositionInformation(java.util.List<java.lang.Integer> bitList, int offset, java.util.EnumMap<DataType,java.lang.Integer> bitSizeMap)
          The method that the library use to convert the message.
 
メソッドの概要
 rescuecore2.worldmodel.EntityID getAgentID()
          Return EntityID of the rescue agent.
 rescuecore2.misc.Pair<java.lang.Integer,java.lang.Integer> getCoordinate()
          Return the coordinate of the agent.
 rescuecore2.worldmodel.EntityID getEntityID()
           
 
クラス commlib.message.RCRSCSMessage から継承されたメソッド
equals, getData, getMessageBitSize, getMessageType, getSendTime, hashCode, isSendable, setData, setData
 
クラス java.lang.Object から継承されたメソッド
getClass, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PositionInformation

public PositionInformation(int time,
                           rescuecore2.worldmodel.EntityID platoonID,
                           rescuecore2.misc.Pair<java.lang.Integer,java.lang.Integer> cor)

Constructor

Create the information of the agent's location.
Included data are follow.

パラメータ:
time - step num
platoonID - EntityID of the rescue agent
cor - agent location

PositionInformation

public PositionInformation(java.util.List<java.lang.Integer> bitList,
                           int offset,
                           java.util.EnumMap<DataType,java.lang.Integer> bitSizeMap)
The method that the library use to convert the message.

パラメータ:
bitList -
offset -
bitSizeMap -
メソッドの詳細

getAgentID

public rescuecore2.worldmodel.EntityID getAgentID()
Return EntityID of the rescue agent.

戻り値:
EntityID

getCoordinate

public rescuecore2.misc.Pair<java.lang.Integer,java.lang.Integer> getCoordinate()
Return the coordinate of the agent.

戻り値:
coordinate(Pair<Integer,Integer>)

getEntityID

public rescuecore2.worldmodel.EntityID getEntityID()
定義:
クラス WorldInformation 内の getEntityID