commlib.information
クラス UnpassableInformation

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

public class UnpassableInformation
extends WorldInformation

The UnpassableInformation show the information that some area is not available to go to the neighbor area.

作成者:
takefumi

コンストラクタの概要
UnpassableInformation(int time, rescuecore2.worldmodel.EntityID platoonID, rescuecore2.worldmodel.EntityID from, rescuecore2.worldmodel.EntityID to, rescuecore2.worldmodel.EntityID blockade)
          Constructor Create the unpassable information.
UnpassableInformation(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.worldmodel.EntityID getBLockadeID()
          EntityID of blockade that is a cause of the unppasable situation.
 rescuecore2.worldmodel.EntityID getEntityID()
           
 rescuecore2.worldmodel.EntityID getFromAreaID()
          Return EntityID of area that the agent is standing
 rescuecore2.worldmodel.EntityID getToAreaID()
          EntityID of destination area
 
クラス commlib.message.RCRSCSMessage から継承されたメソッド
equals, getData, getMessageBitSize, getMessageType, getSendTime, hashCode, isSendable, setData, setData
 
クラス java.lang.Object から継承されたメソッド
getClass, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

UnpassableInformation

public UnpassableInformation(int time,
                             rescuecore2.worldmodel.EntityID platoonID,
                             rescuecore2.worldmodel.EntityID from,
                             rescuecore2.worldmodel.EntityID to,
                             rescuecore2.worldmodel.EntityID blockade)

Constructor

Create the unpassable information.
Included data are follow.

パラメータ:
time - step num
platoonID - EntityID of the rescue agent
from - EntityID of area that the agent is standing.
to - EntityID of destination area
blockade - EntityID of blockade that is a cause of the unppasable situation.

UnpassableInformation

public UnpassableInformation(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

getEntityID

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

getFromAreaID

public rescuecore2.worldmodel.EntityID getFromAreaID()
Return EntityID of area that the agent is standing

戻り値:
EntityID of area

getToAreaID

public rescuecore2.worldmodel.EntityID getToAreaID()
EntityID of destination area

戻り値:
EntityID of area

getBLockadeID

public rescuecore2.worldmodel.EntityID getBLockadeID()
EntityID of blockade that is a cause of the unppasable situation.

戻り値:
EntityID of blockade