public final class TimeStamp
extends java.lang.Object
修飾子とタイプ | クラスと説明 |
---|---|
class |
TimeStamp.AreaBlockadeListener
Area情報が更新された際、啓開済みの閉塞をWorldModelから削除するリスナー
|
class |
TimeStamp.StateChangeListener
Entityの状態が変化したことを監視するListener
|
コンストラクタと説明 |
---|
TimeStamp(AdvancedWorldModel w) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addStateChangeListener(rescuecore2.worldmodel.Entity entity)
EntityにStateChangeListenerを付加する 通信情報で初めて認識したEntityに使用する。
|
int |
getLastChangedTime(rescuecore2.worldmodel.EntityID id)
Entityの状態が最後に変化した時間を得る
|
int |
getLastSeenTime(rescuecore2.worldmodel.EntityID id)
そのEntityを最後に見た時間
見ていない場合は-1 |
int |
getPropertyTimeStamp(rescuecore2.worldmodel.EntityID id,
rescuecore2.standard.entities.StandardPropertyURN propertyUrn)
Propertyの最終更新時間を得る
|
java.util.Map<rescuecore2.standard.entities.StandardPropertyURN,java.lang.Integer> |
getPropertyTimeStampMap(rescuecore2.worldmodel.EntityID id)
EntityのPropertyごとの最終更新情報を得る
|
boolean |
haveSeen(rescuecore2.worldmodel.EntityID id) |
void |
merge(rescuecore2.worldmodel.ChangeSet changeSet) |
void |
setLastChangedTime(rescuecore2.worldmodel.EntityID id,
int time)
最後に状態が変化した時間を設定する.
|
public TimeStamp(AdvancedWorldModel w)
public int getLastSeenTime(rescuecore2.worldmodel.EntityID id)
id
- public int getLastChangedTime(rescuecore2.worldmodel.EntityID id)
id
- 変化した時間を得たいEntitypublic void setLastChangedTime(rescuecore2.worldmodel.EntityID id, int time)
id
- time
- public java.util.Map<rescuecore2.standard.entities.StandardPropertyURN,java.lang.Integer> getPropertyTimeStampMap(rescuecore2.worldmodel.EntityID id)
id
- public int getPropertyTimeStamp(rescuecore2.worldmodel.EntityID id, rescuecore2.standard.entities.StandardPropertyURN propertyUrn)
id
- propertyUrn
- public boolean haveSeen(rescuecore2.worldmodel.EntityID id)
id
- public void addStateChangeListener(rescuecore2.worldmodel.Entity entity)
entity
- StateChangeListenerを付加するEntitypublic void merge(rescuecore2.worldmodel.ChangeSet changeSet)