|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectcommlib.message.RCRSCSMessageConverter
public class RCRSCSMessageConverter
The RCRSCSMessageConverter convert messages to bytes, and bytes to messages.
| フィールドの概要 | |
|---|---|
int |
DAMAGE_PERCEPTION_LOS
|
int |
EXTINGUISHABLE_DISTANCE
|
int |
EXTINGUISHABLE_POWER
|
int |
HP_PERCEPTION_LOS
|
int |
RANGE_OF_VIEW
|
int |
TANK_MAX
|
| コンストラクタの概要 | |
|---|---|
RCRSCSMessageConverter(rescuecore2.worldmodel.EntityID ownerID,
rescuecore2.config.Config config,
java.util.List<rescuecore2.worldmodel.EntityID> buildingList,
java.util.List<rescuecore2.worldmodel.EntityID> roadList,
java.util.List<rescuecore2.worldmodel.EntityID> refugeList,
java.util.List<rescuecore2.worldmodel.EntityID> areaList,
java.util.List<rescuecore2.worldmodel.EntityID> policeForceList,
java.util.List<rescuecore2.worldmodel.EntityID> ambulanceTeamList,
java.util.List<rescuecore2.worldmodel.EntityID> fireBrigadeList,
java.util.List<rescuecore2.worldmodel.EntityID> platoonAgentList,
java.util.List<rescuecore2.worldmodel.EntityID> policeOfficeList,
java.util.List<rescuecore2.worldmodel.EntityID> ambulanceCenterList,
java.util.List<rescuecore2.worldmodel.EntityID> fireStationList)
推奨されていません。 |
|
RCRSCSMessageConverter(rescuecore2.worldmodel.EntityID ownerID,
rescuecore2.standard.entities.StandardWorldModel model,
rescuecore2.config.Config config)
Constructor Prepare to convert. |
|
| メソッドの概要 | |
|---|---|
static int |
bitToInt(java.util.List<java.lang.Integer> list,
int index,
int length)
Create int from a part of bit sequence. |
java.util.List<RCRSCSMessage> |
bytesToMessageList(byte[] bytes)
Convert received bytes to message list. |
boolean |
equals(java.lang.Object obj)
|
static int |
getDataTypeIndex(java.util.EnumMap<DataType,java.lang.Integer> map,
DataType dType,
java.lang.Integer i)
This is private method used on converting. |
int |
hashCode()
|
byte[] |
messageToBytes(java.util.List<RCRSCSMessage> messages)
Convert messages to bytes The messages that failed to cenvert are not contained. |
| クラス java.lang.Object から継承されたメソッド |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
public final int EXTINGUISHABLE_POWER
public final int EXTINGUISHABLE_DISTANCE
public final int TANK_MAX
public final int HP_PERCEPTION_LOS
public final int DAMAGE_PERCEPTION_LOS
public final int RANGE_OF_VIEW
| コンストラクタの詳細 |
|---|
@Deprecated
public RCRSCSMessageConverter(rescuecore2.worldmodel.EntityID ownerID,
rescuecore2.config.Config config,
java.util.List<rescuecore2.worldmodel.EntityID> buildingList,
java.util.List<rescuecore2.worldmodel.EntityID> roadList,
java.util.List<rescuecore2.worldmodel.EntityID> refugeList,
java.util.List<rescuecore2.worldmodel.EntityID> areaList,
java.util.List<rescuecore2.worldmodel.EntityID> policeForceList,
java.util.List<rescuecore2.worldmodel.EntityID> ambulanceTeamList,
java.util.List<rescuecore2.worldmodel.EntityID> fireBrigadeList,
java.util.List<rescuecore2.worldmodel.EntityID> platoonAgentList,
java.util.List<rescuecore2.worldmodel.EntityID> policeOfficeList,
java.util.List<rescuecore2.worldmodel.EntityID> ambulanceCenterList,
java.util.List<rescuecore2.worldmodel.EntityID> fireStationList)
public RCRSCSMessageConverter(rescuecore2.worldmodel.EntityID ownerID,
rescuecore2.standard.entities.StandardWorldModel model,
rescuecore2.config.Config config)
ownerID - EntityID of this converter user(Agent or Center).model - config - | メソッドの詳細 |
|---|
public java.util.List<RCRSCSMessage> bytesToMessageList(byte[] bytes)
bytes - converting bytes
public static int bitToInt(java.util.List<java.lang.Integer> list,
int index,
int length)
list - index - length -
public byte[] messageToBytes(java.util.List<RCRSCSMessage> messages)
messages - List of messages
public static int getDataTypeIndex(java.util.EnumMap<DataType,java.lang.Integer> map,
DataType dType,
java.lang.Integer i)
map - dType - i -
public int hashCode()
java.lang.Object 内の hashCodepublic boolean equals(java.lang.Object obj)
java.lang.Object 内の equals
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||