commlib.information
クラス BlockadeInformation

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

public class BlockadeInformation
extends WorldInformation

The BlockadeInformation represent the Information of Blockade.

作成者:
takefumi

コンストラクタの概要
BlockadeInformation(BaseMessageType type, 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.
BlockadeInformation(int time, rescuecore2.worldmodel.EntityID blockadeID, rescuecore2.worldmodel.EntityID roadID, int repairCost)
          Constructor Create the blockade information.
BlockadeInformation(int time, rescuecore2.worldmodel.EntityID blockadeID, rescuecore2.worldmodel.EntityID roadID, int repairCost, rescuecore2.misc.Pair<java.lang.Integer,java.lang.Integer> blockadeCor)
          Constructor Create the blockade information.
 
メソッドの概要
 rescuecore2.worldmodel.EntityID getBlockadeID()
          Return EntityID of the blockade.
 rescuecore2.misc.Pair<java.lang.Integer,java.lang.Integer> getCoodinate()
          Return the coordinate of the blockade.
 rescuecore2.worldmodel.EntityID getEntityID()
           
 int getRepairCost()
          Return repair cost of the blockade.
 rescuecore2.worldmodel.EntityID getRoadID()
          Return EntityID of road that the blockade exist.
 
クラス commlib.message.RCRSCSMessage から継承されたメソッド
equals, getData, getMessageBitSize, getMessageType, getSendTime, hashCode, isSendable, setData, setData
 
クラス java.lang.Object から継承されたメソッド
getClass, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

BlockadeInformation

public BlockadeInformation(int time,
                           rescuecore2.worldmodel.EntityID blockadeID,
                           rescuecore2.worldmodel.EntityID roadID,
                           int repairCost)

Constructor

Create the blockade information.
Included data are follow.
Additionally, This message can send the barycentric coodinate of the blockade, if coodinate information doesn't exist, we get coodinate information as (-1,-1).

パラメータ:
time - step num
blockadeID - EntityID of the blockade
roadID - EntityID of road that the blockade exists
repairCost - repair cost of the blockade

BlockadeInformation

public BlockadeInformation(int time,
                           rescuecore2.worldmodel.EntityID blockadeID,
                           rescuecore2.worldmodel.EntityID roadID,
                           int repairCost,
                           rescuecore2.misc.Pair<java.lang.Integer,java.lang.Integer> blockadeCor)

Constructor

Create the blockade information.
Included data are follow.

パラメータ:
time - step num
blockadeID - EntityID of the blockade
roadID - EntityiD of road that the blockade exists
repairCost - repair cost of the blockade
blockadeCor - barycentric coordinate of the blockade

BlockadeInformation

public BlockadeInformation(BaseMessageType type,
                           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.

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

getBlockadeID

public rescuecore2.worldmodel.EntityID getBlockadeID()
Return EntityID of the blockade.

戻り値:
EntityID

getRoadID

public rescuecore2.worldmodel.EntityID getRoadID()
Return EntityID of road that the blockade exist.

戻り値:
EntityID

getRepairCost

public int getRepairCost()
Return repair cost of the blockade.

戻り値:
repair cost

getCoodinate

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

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

getEntityID

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