cs.arizona.tau.time
Class TimePeriod
java.lang.Object
cs.arizona.tau.time.TimePeriod
- All Implemented Interfaces:
- ITime, ITimePeriod
public class TimePeriod
- extends java.lang.Object
- implements ITimePeriod
- Author:
- spjoshi
Fields inherited from interface cs.arizona.tau.time.ITimePeriod |
A_BEFORE_B, A_DURING_B, A_EQUALS_B, A_FINISHES_B, A_MEETS_B, A_OVERLAPS_B, A_STARTS_B, B_BEFORE_A, B_DURING_A, B_FINISHES_A, B_MEETS_A, B_OVERLAPS_A, B_STARTS_A, BITEMPORAL_TIME, EXTENT_REP, NO_OVERLAP, STEP_REP, TRANSACTION_TIME, VALID_TIME |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TimePeriod
public TimePeriod()
TimePeriod
public TimePeriod(java.util.Date beginDate,
java.util.Date endDate)
TimePeriod
public TimePeriod(java.lang.String strBeginDate,
java.lang.String strEndDate)
TimePeriod
public TimePeriod(ITimePeriod tp)
TimePeriod
public TimePeriod(org.w3c.dom.Element xmlPeriodElement)
formatDate
public java.lang.String formatDate(java.util.Date a)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
setBeginDate
public void setBeginDate(java.util.Date beginDate)
- Specified by:
setBeginDate
in interface ITimePeriod
setEndDate
public void setEndDate(java.util.Date endDate)
- Specified by:
setEndDate
in interface ITimePeriod
getBeginDate
public java.util.Date getBeginDate()
- Specified by:
getBeginDate
in interface ITimePeriod
getEndDate
public java.util.Date getEndDate()
- Specified by:
getEndDate
in interface ITimePeriod
toXML
public org.w3c.dom.Element toXML(int timeDimension,
int timeRepresentation,
org.w3c.dom.Document doc)
- Specified by:
toXML
in interface ITimePeriod
getRelationship
public int getRelationship(ITime tp1)
- Specified by:
getRelationship
in interface ITime
split
public java.util.Iterator split(ITimePeriod tp)
- Specified by:
split
in interface ITimePeriod
getInterfaceName
public java.lang.String getInterfaceName()
- Specified by:
getInterfaceName
in interface ITimePeriod
cloneTime
public ITime cloneTime()
- Specified by:
cloneTime
in interface ITime