Package org.goplanit.utils.time
Interface TimePeriod
-
- All Superinterfaces:
Cloneable
,Comparable<IdAble>
,ExternalIdAble
,IdAble
- All Known Implementing Classes:
TimePeriodImpl
public interface TimePeriod extends ExternalIdAble
Represents a time period within the day. Used to determine the duration and start time of trips for example. We internally adopt seconds as the unit- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getDescription()
Return the descriptionlong
getDurationSeconds()
Return the duration in secondslong
getStartTimeSeconds()
Return the start time-
Methods inherited from interface org.goplanit.utils.id.ExternalIdAble
getExternalId, getXmlId, hasExternalId, hasXmlId, setExternalId, setXmlId
-
-
-
-
Method Detail
-
getStartTimeSeconds
long getStartTimeSeconds()
Return the start time- Returns:
- start time
-
getDurationSeconds
long getDurationSeconds()
Return the duration in seconds- Returns:
- duration
-
getDescription
String getDescription()
Return the description- Returns:
- description of this TimePeriod
-
-