jp.ac.nagoyau.is.ss.kishii.suntori.message.information
クラス BlockadeInformation

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

public class BlockadeInformation
extends WorldInformation

閉塞の情報を表すクラスです.

作成者:
takefumi

フィールドの概要
 
クラス jp.ac.nagoyau.is.ss.kishii.suntori.message.RCRSCSMessage から継承されたフィールド
COMMON_DATA_TYPE, data, messageType
 
コンストラクタの概要
BlockadeInformation(BaseMessageType type, java.util.List<java.lang.Integer> bitList, int offset, java.util.EnumMap<DataType,java.lang.Integer> bitSizeMap)
          メッセージをコンバートするためにシステムが使用するコンストラクタ
BlockadeInformation(int time, EntityID blockadeID, EntityID roadID, int repairCost)
          コンストラクタ
閉塞情報を生成します.
BlockadeInformation(int time, EntityID blockadeID, EntityID roadID, int repairCost,  blockadeCor)
          コンストラクタ
閉塞情報を生成します.
 
メソッドの概要
 EntityID getBlockadeID()
          閉塞のIDを取得する.
  getCoodinate()
          閉塞の座標を取得する.
 int getRepairCost()
          閉塞のRepair Costを取得する.
 EntityID getRoadID()
          閉塞が所属している道のIDを取得する.
 
クラス jp.ac.nagoyau.is.ss.kishii.suntori.message.RCRSCSMessage から継承されたメソッド
equals, getBrokenness, getBuriedness, getCoodinate, getDamage, getData, getData, getDataTypeArray, getEntityIDList, getFieryness, getHP, getID, getMessageBitSize, getMessageMinimumSize, getMessageType, getRepairCost, getSendTime, getSendTime, getSupplyQuantity, getWater, getWaterPower, hashCode, isSendable, setCoorinate, setData, setData
 
クラス java.lang.Object から継承されたメソッド
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

BlockadeInformation

public BlockadeInformation(int time,
                           EntityID blockadeID,
                           EntityID roadID,
                           int repairCost)
コンストラクタ
閉塞情報を生成します.
含まれる情報は以下のものです. 閉塞情報は閉塞の重心座標を送信することもでき,座標情報がある場合は座標(x,y)を,座標情報が含まれていない場合は(-1,-1)をPair< Integer,Integer>として取得することができます.

パラメータ:
time - 現在のステップ
blockadeID - 閉塞のID
roadID - 閉塞が属する道路のID
repairCost - 開通コスト

BlockadeInformation

public BlockadeInformation(int time,
                           EntityID blockadeID,
                           EntityID roadID,
                           int repairCost,
                            blockadeCor)
コンストラクタ
閉塞情報を生成します.
含まれる情報は以下のものです.

パラメータ:
time - 現在のステップ
blockadeID - 閉塞のID
roadID - 閉塞が属する道路のID
repairCost - 開通コスト
blockadeCor - 閉塞の重心座標

BlockadeInformation

public BlockadeInformation(BaseMessageType type,
                           java.util.List<java.lang.Integer> bitList,
                           int offset,
                           java.util.EnumMap<DataType,java.lang.Integer> bitSizeMap)
メッセージをコンバートするためにシステムが使用するコンストラクタ

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

getBlockadeID

public EntityID getBlockadeID()
閉塞のIDを取得する.

戻り値:
閉塞のEntityID

getRoadID

public EntityID getRoadID()
閉塞が所属している道のIDを取得する.

戻り値:
道路のEntityID

getRepairCost

public int getRepairCost()
閉塞のRepair Costを取得する.

戻り値:
閉塞の開通コスト(int)

getCoodinate

public  getCoodinate()
閉塞の座標を取得する.

戻り値:
閉塞の重心座標