cz.cuni.amis.nb.pogamut.unreal.timeline.records
Class TLAgentEntity

Package class diagram package TLAgentEntity
java.lang.Object
  extended by cz.cuni.amis.nb.pogamut.unreal.timeline.records.TLEntity
      extended by cz.cuni.amis.nb.pogamut.unreal.timeline.records.TLAgentEntity
All Implemented Interfaces:
Serializable

public class TLAgentEntity
extends TLEntity

TLEntity with infrastructure to gather info from some agent

Author:
Honza
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class cz.cuni.amis.nb.pogamut.unreal.timeline.records.TLEntity
TLEntity.Adapter, TLEntity.Listener, TLEntity.State
 
Field Summary
protected  TLLocation botLocation
          Location of agent during recording.
protected  TLRotation botRotation
          Rotation of agent during recording.
protected  TLVelocity botVelocity
          Velocity of agent during recording.
protected  TLEntityUpdater updateWorker
          Updater to pass info from introspection to properties.
 
Fields inherited from class cz.cuni.amis.nb.pogamut.unreal.timeline.records.TLEntity
database, storageFolder
 
Constructor Summary
TLAgentEntity(TLDatabase db, cz.cuni.amis.pogamut.unreal.bot.IUnrealBot agent)
          Create a new TLEntity that takes its data from the unreal agent.
 
Method Summary
 void finish()
          Finsih this entity, after calling this method, new data are not expected to appear.
 cz.cuni.amis.pogamut.base.agent.IAgent getAgent()
           
 String getDisplayName()
           
 cz.cuni.amis.pogamut.base3d.worldview.object.Location getLocation(long time)
          Return location of bot.
 cz.cuni.amis.pogamut.base3d.worldview.object.Rotation getRotation(long time)
          Return location of bot.
 cz.cuni.amis.pogamut.base3d.worldview.object.Velocity getVelocity(long time)
          Return location of bot.
 void printFolders(PrintStream stream)
           
 void printTimelinedata()
           
 
Methods inherited from class cz.cuni.amis.nb.pogamut.unreal.timeline.records.TLEntity
addListener, addLogRecording, getColor, getDatabase, getDoublePropertyValue, getEndTime, getFolder, getListeners, getLogRecorders, getStartTime, getState, printInfo, removeListener, setColor, setEndTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

botLocation

protected TLLocation botLocation
Location of agent during recording.


botRotation

protected TLRotation botRotation
Rotation of agent during recording.


botVelocity

protected TLVelocity botVelocity
Velocity of agent during recording.


updateWorker

protected transient TLEntityUpdater updateWorker
Updater to pass info from introspection to properties.

Constructor Detail

TLAgentEntity

public TLAgentEntity(TLDatabase db,
                     cz.cuni.amis.pogamut.unreal.bot.IUnrealBot agent)
Create a new TLEntity that takes its data from the unreal agent.

Parameters:
db -
agent -
Method Detail

getAgent

public cz.cuni.amis.pogamut.base.agent.IAgent getAgent()

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in class TLEntity

getLocation

public cz.cuni.amis.pogamut.base3d.worldview.object.Location getLocation(long time)
Return location of bot.

Specified by:
getLocation in class TLEntity
Returns:
null if folder not found or data not available, location otherwise

getRotation

public cz.cuni.amis.pogamut.base3d.worldview.object.Rotation getRotation(long time)
Return location of bot.

Specified by:
getRotation in class TLEntity
Returns:
null if folder not found or data not available, location otherwise

getVelocity

public cz.cuni.amis.pogamut.base3d.worldview.object.Velocity getVelocity(long time)
Return location of bot.

Specified by:
getVelocity in class TLEntity
Returns:
null if folder not found or data not available, location otherwise

finish

public void finish()
Description copied from class: TLEntity
Finsih this entity, after calling this method, new data are not expected to appear. Should be used if user stops the recording or if underlying entity stops working.

Overrides:
finish in class TLEntity

printFolders

public void printFolders(PrintStream stream)

printTimelinedata

public void printTimelinedata()
                       throws cz.cuni.amis.introspection.IntrospectionException
Throws:
cz.cuni.amis.introspection.IntrospectionException


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.