Class EventsFileComparator
- java.lang.Object
-
- org.matsim.utils.eventsfilecomparison.EventsFileComparator
-
public final class EventsFileComparator extends Object
This class checks if two events files are semantic equivalent. The order of the events does not matter as long as they are chronologically sorted.- Author:
- mrieser, laemmel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EventsFileComparator.Result
-
Field Summary
Fields Modifier and Type Field Description static int
CODE_DIFFERENT_NUMBER_OF_TIMESTEPS
Deprecated.static int
CODE_DIFFERENT_TIMESTEPS
Deprecated.static int
CODE_FILES_ARE_EQUAL
Deprecated.static int
CODE_MISSING_EVENT
Deprecated.static int
CODE_WRONG_EVENT_COUNT
Deprecated.
-
Constructor Summary
Constructors Constructor Description EventsFileComparator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static EventsFileComparator.Result
compare(String filename1, String filename2)
static int
compareAndReturnInt(String filename1, String filename2)
Deprecated.static void
main(String[] args)
EventsFileComparator.Result
runComparison(String filename1, String filename2)
EventsFileComparator
setIgnoringCoordinates(boolean ignoringCoordinates)
-
-
-
Field Detail
-
CODE_FILES_ARE_EQUAL
@Deprecated public static final int CODE_FILES_ARE_EQUAL
Deprecated.- See Also:
- Constant Field Values
-
CODE_DIFFERENT_NUMBER_OF_TIMESTEPS
@Deprecated public static final int CODE_DIFFERENT_NUMBER_OF_TIMESTEPS
Deprecated.- See Also:
- Constant Field Values
-
CODE_DIFFERENT_TIMESTEPS
@Deprecated public static final int CODE_DIFFERENT_TIMESTEPS
Deprecated.- See Also:
- Constant Field Values
-
CODE_MISSING_EVENT
@Deprecated public static final int CODE_MISSING_EVENT
Deprecated.- See Also:
- Constant Field Values
-
CODE_WRONG_EVENT_COUNT
@Deprecated public static final int CODE_WRONG_EVENT_COUNT
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EventsFileComparator
public EventsFileComparator()
-
-
Method Detail
-
setIgnoringCoordinates
public EventsFileComparator setIgnoringCoordinates(boolean ignoringCoordinates)
-
compareAndReturnInt
@Deprecated public static int compareAndReturnInt(String filename1, String filename2)
Deprecated.Compares two Events files. This method is thread-safe.- Parameters:
filename1
-filename2
-- Returns:
0
if the events files are equal, or some error code (see constants) if not.
-
runComparison
public EventsFileComparator.Result runComparison(String filename1, String filename2)
-
compare
public static EventsFileComparator.Result compare(String filename1, String filename2)
-
-