|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlogger.Log
public class Log
A log stores the modification to a map.
Field Summary | |
---|---|
private java.util.ArrayList<LogEvent> |
events
the modifications to the map |
private long |
logStart
the time when the map was opened |
private java.lang.String |
mapFile
the location of the map |
private static long |
serialVersionUID
the serialization version identifier |
private java.util.ArrayList<LogEvent> |
undoneEvents
a list of events that have been undone |
Constructor Summary | |
---|---|
Log(java.lang.String mapFile)
Constructs a log for the specified map. |
Method Summary | |
---|---|
void |
addEvent(LogEvent event)
Adds an event to the log. |
Log |
copy()
Performs a deep clone of the log. |
java.util.ArrayList<LogEvent> |
getEvents()
Gets the events in the log. |
long |
getLogStart()
Gets the starting time of the log. |
java.lang.String |
getMapFile()
Gets the map file. |
LogEvent |
getRedoEvent()
Gets the next event to redo. |
LogEvent |
getUndoEvent()
Gets the next event to undo. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private java.util.ArrayList<LogEvent> events
private java.util.ArrayList<LogEvent> undoneEvents
private java.lang.String mapFile
private long logStart
Constructor Detail |
---|
public Log(java.lang.String mapFile)
mapFile
- - the map to modifyMethod Detail |
---|
public LogEvent getUndoEvent()
public LogEvent getRedoEvent()
public void addEvent(LogEvent event)
event
- - the modification eventpublic java.util.ArrayList<LogEvent> getEvents()
public java.lang.String getMapFile()
public long getLogStart()
public Log copy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |