Package org.deckfour.xes.info.impl
Class XTimeBoundsImpl
- java.lang.Object
-
- org.deckfour.xes.info.impl.XTimeBoundsImpl
-
- All Implemented Interfaces:
XTimeBounds
public class XTimeBoundsImpl extends java.lang.Object implements XTimeBounds
This class implements timestamp boundaries, which can be used to describe the temporal extent of a log, or of a contained trace.- Author:
- Christian W. Guenther (christian@deckfour.org)
-
-
Constructor Summary
Constructors Constructor Description XTimeBoundsImpl()Creates new timestamp boundaries.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.DategetEndDate()Returns the latest timestamp of these boundaries (right bound).java.util.DategetStartDate()Returns the earliest timestamp of these boundaries (left bound).booleanisWithin(java.util.Date date)Checks, whether the given date is within these boundaries.voidregister(java.util.Date date)Registers the given date.voidregister(XTimeBounds boundary)Registers the given timestamp boundaries.voidregister(XEvent event)Registers the given event, i.e.java.lang.StringtoString()Returns a string representation of these boundaries.
-
-
-
Method Detail
-
getStartDate
public java.util.Date getStartDate()
Description copied from interface:XTimeBoundsReturns the earliest timestamp of these boundaries (left bound).- Specified by:
getStartDatein interfaceXTimeBounds- Returns:
- The earliest timestamp of these boundaries.
-
getEndDate
public java.util.Date getEndDate()
Description copied from interface:XTimeBoundsReturns the latest timestamp of these boundaries (right bound).- Specified by:
getEndDatein interfaceXTimeBounds- Returns:
- The latest timestamp of these boundaries.
-
isWithin
public boolean isWithin(java.util.Date date)
Description copied from interface:XTimeBoundsChecks, whether the given date is within these boundaries.- Specified by:
isWithinin interfaceXTimeBounds- Parameters:
date- Date to be checked.- Returns:
- Whether the specified date is within these boundaries.
-
register
public void register(XEvent event)
Registers the given event, i.e. if it has a timestamp, the timestamp boundaries will be potentially adjusted to accomodate for inclusion of this event.- Parameters:
event- Event to be registered.
-
register
public void register(java.util.Date date)
Registers the given date. The timestamp boundaries will be potentially adjusted to accomodate for inclusion of this date.- Parameters:
date- Date to be registered.
-
register
public void register(XTimeBounds boundary)
Registers the given timestamp boundaries. These timestamp boundaries will be potentially adjusted to accomodate for inclusion of the given boundaries.- Parameters:
date- Timestamp boundaries to be registered.
-
toString
public java.lang.String toString()
Description copied from interface:XTimeBoundsReturns a string representation of these boundaries.- Specified by:
toStringin interfaceXTimeBounds- Overrides:
toStringin classjava.lang.Object
-
-