Package com.luciad.shape
Class TLcdTimeBounds
java.lang.Object
com.luciad.shape.TLcdTimeBounds
- All Implemented Interfaces:
ILcdEditableTimeBounds
,ILcdTimeBounds
This class provides an implementation of
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.
- Since:
- 9.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.luciad.shape.ILcdTimeBounds
ILcdTimeBounds.Boundedness
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an undefined time bounds: Begin time: 0 Begin time boundedness: Boundedness.UNDEFINED End time: 0 End time boundedness: Boundedness.UNDEFINEDTLcdTimeBounds
(long aBeginTime, long aEndTime) Creates a bounded time bounds: Begin time: aBeginTime Begin time boundedness: Boundedness.BOUNDED End time: aEndTime End time boundedness: Boundedness.BOUNDEDTLcdTimeBounds
(long aBeginTime, ILcdTimeBounds.Boundedness aBeginTimeBoundedness, long aEndTime, ILcdTimeBounds.Boundedness aEndTimeBoundedness) Creates a time bounds with the specified arguments.TLcdTimeBounds
(ILcdTimeBounds aTimeBounds) Creates a time bounds with the same arguments as the givenILcdTimeBounds
-
Method Summary
Modifier and TypeMethodDescriptionboolean
long
Returns the begin time of thisILcdTimeBounds
.Returns the boundedness of the begin time.long
Returns the end time of thisILcdTimeBounds
.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 timeboundsvoid
setBeginTime
(long aBeginTime) Adjusts the begin time of thisILcdTimeBounds
.void
setBeginTimeBoundedness
(ILcdTimeBounds.Boundedness aBeginTimeBoundedness) Adjusts the boundedness of the begin time.void
setEndTime
(long aEndTime) Adjusts the end time of thisILcdTimeBounds
.void
setEndTimeBoundedness
(ILcdTimeBounds.Boundedness aEndTimeBoundedness) Adjusts the boundedness of the end time.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.luciad.shape.ILcdEditableTimeBounds
setToIncludeTime, setToUnion
-
Constructor Details
-
TLcdTimeBounds
public TLcdTimeBounds()Creates an undefined time bounds:- Begin time: 0
- Begin time boundedness: Boundedness.UNDEFINED
- End time: 0
- End time boundedness: Boundedness.UNDEFINED
-
TLcdTimeBounds
public 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
- Parameters:
aBeginTime
- The begin timeaEndTime
- The end time
-
TLcdTimeBounds
public TLcdTimeBounds(long aBeginTime, ILcdTimeBounds.Boundedness aBeginTimeBoundedness, long aEndTime, ILcdTimeBounds.Boundedness aEndTimeBoundedness) Creates a time bounds with the specified arguments.- Parameters:
aBeginTime
- The begin timeaBeginTimeBoundedness
- The begin time boundednessaEndTime
- The end timeaEndTimeBoundedness
- The end time boundedness
-
TLcdTimeBounds
Creates a time bounds with the same arguments as the givenILcdTimeBounds
- Parameters:
aTimeBounds
- A time bounds
-
-
Method Details
-
set
A convenience method that sets the properties of this timebounds to match the properties of a given timebounds
- Parameters:
aTimeBounds
- a givenILcdTimeBounds
whose parameters should be used in thisTLcdTimeBounds
-
getBeginTime
public long getBeginTime()Description copied from interface:ILcdTimeBounds
Returns the begin time of thisILcdTimeBounds
. The long value is defined as inDate.getTime()
.This method should only be called if the corresponding boundedness is
ILcdTimeBounds.Boundedness.BOUNDED
. Otherwise, the return value of this method is undefined.- Specified by:
getBeginTime
in interfaceILcdTimeBounds
- Returns:
- the begin time of this
ILcdTimeBounds
.
-
setBeginTime
public void setBeginTime(long aBeginTime) Description copied from interface:ILcdEditableTimeBounds
Adjusts the begin time of thisILcdTimeBounds
. The long value is defined as inDate.getTime()
.- Specified by:
setBeginTime
in interfaceILcdEditableTimeBounds
- Parameters:
aBeginTime
- the new begin time of thisILcdTimeBounds
.- See Also:
-
getEndTime
public long getEndTime()Description copied from interface:ILcdTimeBounds
Returns the end time of thisILcdTimeBounds
. The long value is defined as inDate.getTime()
.This method should only be called if the corresponding boundedness is
ILcdTimeBounds.Boundedness.BOUNDED
. Otherwise, the return value of this method is undefined.- Specified by:
getEndTime
in interfaceILcdTimeBounds
- Returns:
- the end time of this
ILcdTimeBounds
.
-
setEndTime
public void setEndTime(long aEndTime) Description copied from interface:ILcdEditableTimeBounds
Adjusts the end time of thisILcdTimeBounds
. The long value is defined as inDate.getTime()
.- Specified by:
setEndTime
in interfaceILcdEditableTimeBounds
- Parameters:
aEndTime
- the new end time of thisILcdTimeBounds
.- See Also:
-
getBeginTimeBoundedness
Description copied from interface:ILcdTimeBounds
Returns the boundedness of the begin time. This method can be used to check whether the begin time is undefined, bounded or unbounded.- Specified by:
getBeginTimeBoundedness
in interfaceILcdTimeBounds
- Returns:
- the boundedness of the begin time.
-
setBeginTimeBoundedness
Description copied from interface:ILcdEditableTimeBounds
Adjusts the boundedness of the begin time.- Specified by:
setBeginTimeBoundedness
in interfaceILcdEditableTimeBounds
- Parameters:
aBeginTimeBoundedness
- the new boundedness of the begin time.- See Also:
-
getEndTimeBoundedness
Description copied from interface:ILcdTimeBounds
Returns the boundedness of the end time. This method can be used to check whether the end time is undefined, bounded or unbounded.- Specified by:
getEndTimeBoundedness
in interfaceILcdTimeBounds
- Returns:
- the boundedness of the end time.
-
setEndTimeBoundedness
Description copied from interface:ILcdEditableTimeBounds
Adjusts the boundedness of the end time.- Specified by:
setEndTimeBoundedness
in interfaceILcdEditableTimeBounds
- Parameters:
aEndTimeBoundedness
- the new boundedness of the end time.- See Also:
-
equals
-
hashCode
public int hashCode() -
toString
-