org.rr0.im.business.event.circumstance
Class PreciseMomentImpl
- public class PreciseMomentImpl
- implements PreciseMoment
Moment Reference Implementation.
- Author:
- Jérôme Beau
- Version: 4 mai 2003 00:17:49
| Field Summary |
protected Calendar | calendar |
| Constructor Summary |
PreciseMomentImpl() Creates the current moment |
PreciseMomentImpl(int someYear, int someMonth, int someDay) |
PreciseMomentImpl(int someYear, int someMonth, int someDay, int someHours, int someMinutes) |
PreciseMomentImpl(int someCurrentYear, int someAge) Compute a date of a being given the current year and its current age. |
PreciseMomentImpl(int someAge) Compute a date of a being given the current year and its current age. |
calendar
protected Calendar calendar
PreciseMomentImpl
public PreciseMomentImpl()
- Creates the current moment
PreciseMomentImpl
public PreciseMomentImpl(int someYear, int someMonth, int someDay)
PreciseMomentImpl
public PreciseMomentImpl(int someYear, int someMonth, int someDay, int someHours, int someMinutes)
PreciseMomentImpl
public PreciseMomentImpl(int someCurrentYear, int someAge)
- Compute a date of a being given the current year and its current age.
- Parameters:
- someCurrentYear
- someAge
PreciseMomentImpl
public PreciseMomentImpl(int someAge)
- Compute a date of a being given the current year and its current age.
- Parameters:
- someAge
getBegining
public Moment getBegining()
getDuration
public Duration getDuration()
getEnd
public Moment getEnd()
getHistory
public TimeLine getHistory()
- A set of events about the life of that being
- Returns: A collection of Events
- associates <{org.rr0.im.business.event.Event}>
- supplierRole history/bio
- supplierCardinality 1..*
getTime
public long getTime()
isAfter
public boolean isAfter(Moment otherMoment)
- If this moment is chronologically after an other moment
- Parameters:
- otherMoment The other moment
- Returns: If this moment is after the other one.
isBefore
public boolean isBefore(Moment otherMoment)
to Class java.util.Calendar
to Class org.rr0.im.business.event.Event
- A set of events about the life of that being
- Supplier Role history/bio
- Supplier Cardinality 1..*
- associates <{org.rr0.im.business.event.Event}>
- return A collection of Events