public class TLcdTimeBounds extends Object implements ILcdTimeBounds, ILcdEditableTimeBounds
ILcdTimeBounds
.
This class is thread-safe for concurrent read-only access of its contents. For read-write access, external locking must be used. Such locking is typically done at the model level.
ILcdTimeBounds.Boundedness
Constructor and Description |
---|
TLcdTimeBounds()
Creates an undefined time bounds:
Begin time: 0
Begin time boundedness: Boundedness.UNDEFINED
End time: 0
End time boundedness: Boundedness.UNDEFINED
|
TLcdTimeBounds(ILcdTimeBounds aTimeBounds)
Creates a time bounds with the same arguments as the given
ILcdTimeBounds |
TLcdTimeBounds(long aBeginTime,
ILcdTimeBounds.Boundedness aBeginTimeBoundedness,
long aEndTime,
ILcdTimeBounds.Boundedness aEndTimeBoundedness)
Creates a time bounds with the specified arguments.
|
TLcdTimeBounds(long aBeginTime,
long aEndTime)
Creates a bounded time bounds:
Begin time: aBeginTime
Begin time boundedness: Boundedness.BOUNDED
End time: aEndTime
End time boundedness: Boundedness.BOUNDED
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object aObject) |
long |
getBeginTime()
Returns the begin time of this
ILcdTimeBounds . |
ILcdTimeBounds.Boundedness |
getBeginTimeBoundedness()
Returns the boundedness of the begin time.
|
long |
getEndTime()
Returns the end time of this
ILcdTimeBounds . |
ILcdTimeBounds.Boundedness |
getEndTimeBoundedness()
Returns the boundedness of the end time.
|
int |
hashCode() |
void |
set(ILcdTimeBounds aTimeBounds)
A convenience method that sets the properties of this timebounds to match the properties of a
given timebounds
|
void |
setBeginTime(long aBeginTime)
Adjusts the begin time of this
ILcdTimeBounds . |
void |
setBeginTimeBoundedness(ILcdTimeBounds.Boundedness aBeginTimeBoundedness)
Adjusts the boundedness of the begin time.
|
void |
setEndTime(long aEndTime)
Adjusts the end time of this
ILcdTimeBounds . |
void |
setEndTimeBoundedness(ILcdTimeBounds.Boundedness aEndTimeBoundedness)
Adjusts the boundedness of the end time.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
setToIncludeTime, setToUnion
public TLcdTimeBounds()
public TLcdTimeBounds(long aBeginTime, long aEndTime)
aBeginTime
- The begin timeaEndTime
- The end timepublic TLcdTimeBounds(long aBeginTime, ILcdTimeBounds.Boundedness aBeginTimeBoundedness, long aEndTime, ILcdTimeBounds.Boundedness aEndTimeBoundedness)
aBeginTime
- The begin timeaBeginTimeBoundedness
- The begin time boundednessaEndTime
- The end timeaEndTimeBoundedness
- The end time boundednesspublic TLcdTimeBounds(ILcdTimeBounds aTimeBounds)
ILcdTimeBounds
aTimeBounds
- A time boundspublic void set(ILcdTimeBounds aTimeBounds)
A convenience method that sets the properties of this timebounds to match the properties of a given timebounds
aTimeBounds
- a given ILcdTimeBounds
whose parameters should be used in this TLcdTimeBounds
public long getBeginTime()
ILcdTimeBounds
ILcdTimeBounds
. The long value
is defined as in Date.getTime()
.
This method should only be called if the corresponding boundedness is ILcdTimeBounds.Boundedness.BOUNDED
. Otherwise, the return value of this method is undefined.getBeginTime
in interface ILcdTimeBounds
ILcdTimeBounds
.public void setBeginTime(long aBeginTime)
ILcdEditableTimeBounds
ILcdTimeBounds
. The long value
is defined as in Date.getTime()
.setBeginTime
in interface ILcdEditableTimeBounds
aBeginTime
- the new begin time of this ILcdTimeBounds
.ILcdTimeBounds.getBeginTime()
public long getEndTime()
ILcdTimeBounds
ILcdTimeBounds
. The long value is
defined as in Date.getTime()
.
This method should only be called if the corresponding boundedness is ILcdTimeBounds.Boundedness.BOUNDED
. Otherwise, the return value of this method is undefined.getEndTime
in interface ILcdTimeBounds
ILcdTimeBounds
.public void setEndTime(long aEndTime)
ILcdEditableTimeBounds
ILcdTimeBounds
. The long value is
defined as in Date.getTime()
.setEndTime
in interface ILcdEditableTimeBounds
aEndTime
- the new end time of this ILcdTimeBounds
.ILcdTimeBounds.getEndTime()
public ILcdTimeBounds.Boundedness getBeginTimeBoundedness()
ILcdTimeBounds
getBeginTimeBoundedness
in interface ILcdTimeBounds
public void setBeginTimeBoundedness(ILcdTimeBounds.Boundedness aBeginTimeBoundedness)
ILcdEditableTimeBounds
setBeginTimeBoundedness
in interface ILcdEditableTimeBounds
aBeginTimeBoundedness
- the new boundedness of the begin time.ILcdTimeBounds.getBeginTimeBoundedness()
public ILcdTimeBounds.Boundedness getEndTimeBoundedness()
ILcdTimeBounds
getEndTimeBoundedness
in interface ILcdTimeBounds
public void setEndTimeBoundedness(ILcdTimeBounds.Boundedness aEndTimeBoundedness)
ILcdEditableTimeBounds
setEndTimeBoundedness
in interface ILcdEditableTimeBounds
aEndTimeBoundedness
- the new boundedness of the end time.ILcdTimeBounds.getEndTimeBoundedness()