Class Log

java.lang.Object
  |
  +--Log

public class Log
extends java.lang.Object

Log class, used for writing out a log file of actions.


Field Summary
private  java.io.FileOutputStream output
           
private  int time
           
 
Constructor Summary
Log()
          Log constructor for creating an output file called log.txt
 
Method Summary
 void setTime(float t)
          setTime method used for setting the current time cycle value
 void simpleAction(Command action)
          simpleAction method, used for writing the actions out to the log file.
 void visualData(ObjectInfo obj)
          visualData method, used for writing the visual data to the output file.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

output

private java.io.FileOutputStream output

time

private int time
Constructor Detail

Log

public Log()
Log constructor for creating an output file called log.txt
Method Detail

setTime

public void setTime(float t)
setTime method used for setting the current time cycle value
Parameters:
t - Current cycle number
Returns:
none

visualData

public void visualData(ObjectInfo obj)
visualData method, used for writing the visual data to the output file. Format is: (see TIME DISTANCE DIRECTION DISTCHNG DIRCHNG BodyDir HeadDir)
Parameters:
obj - Individual object visual information
Returns:
none

simpleAction

public void simpleAction(Command action)
simpleAction method, used for writing the actions out to the log file.
Parameters:
action - Action command to log to the output file
Returns:
none