public class ModelTrajectoryLogger extends java.lang.Object implements SimEventListener, java.beans.PropertyChangeListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_TRAJECTORY_FILE_NAME |
protected java.io.PrintStream |
out |
protected java.io.File |
trajectoryFile |
Constructor and Description |
---|
ModelTrajectoryLogger() |
ModelTrajectoryLogger(java.io.File logFile) |
Modifier and Type | Method and Description |
---|---|
void |
processSimEvent(SimEvent e)
Process the fired SimEvent.
|
void |
propertyChange(java.beans.PropertyChangeEvent e) |
public static final java.lang.String DEFAULT_TRAJECTORY_FILE_NAME
protected java.io.File trajectoryFile
protected java.io.PrintStream out
public ModelTrajectoryLogger()
public ModelTrajectoryLogger(java.io.File logFile)
public void processSimEvent(SimEvent e)
SimEventListener
processSimEvent
in interface SimEventListener
e
- The SimEvent to process.public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener