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 TypeMethodDescriptionbooleanlongReturns the begin time of thisILcdTimeBounds.Returns the boundedness of the begin time.longReturns the end time of thisILcdTimeBounds.Returns the boundedness of the end time.inthashCode()voidset(ILcdTimeBounds aTimeBounds) A convenience method that sets the properties of this timebounds to match the properties of a given timeboundsvoidsetBeginTime(long aBeginTime) Adjusts the begin time of thisILcdTimeBounds.voidsetBeginTimeBoundedness(ILcdTimeBounds.Boundedness aBeginTimeBoundedness) Adjusts the boundedness of the begin time.voidsetEndTime(long aEndTime) Adjusts the end time of thisILcdTimeBounds.voidsetEndTimeBoundedness(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, waitMethods 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 givenILcdTimeBoundswhose parameters should be used in thisTLcdTimeBounds
-
getBeginTime
public long getBeginTime()Description copied from interface:ILcdTimeBoundsReturns the begin time of thisILcdTimeBounds. The long value is defined as inDate.getTime(). This method should only be called if the corresponding boundedness isILcdTimeBounds.Boundedness.BOUNDED. Otherwise, the return value of this method is undefined.- Specified by:
getBeginTimein interfaceILcdTimeBounds- Returns:
- the begin time of this
ILcdTimeBounds.
-
setBeginTime
public void setBeginTime(long aBeginTime) Description copied from interface:ILcdEditableTimeBoundsAdjusts the begin time of thisILcdTimeBounds. The long value is defined as inDate.getTime().- Specified by:
setBeginTimein interfaceILcdEditableTimeBounds- Parameters:
aBeginTime- the new begin time of thisILcdTimeBounds.- See Also:
-
getEndTime
public long getEndTime()Description copied from interface:ILcdTimeBoundsReturns the end time of thisILcdTimeBounds. The long value is defined as inDate.getTime(). This method should only be called if the corresponding boundedness isILcdTimeBounds.Boundedness.BOUNDED. Otherwise, the return value of this method is undefined.- Specified by:
getEndTimein interfaceILcdTimeBounds- Returns:
- the end time of this
ILcdTimeBounds.
-
setEndTime
public void setEndTime(long aEndTime) Description copied from interface:ILcdEditableTimeBoundsAdjusts the end time of thisILcdTimeBounds. The long value is defined as inDate.getTime().- Specified by:
setEndTimein interfaceILcdEditableTimeBounds- Parameters:
aEndTime- the new end time of thisILcdTimeBounds.- See Also:
-
getBeginTimeBoundedness
Description copied from interface:ILcdTimeBoundsReturns the boundedness of the begin time. This method can be used to check whether the begin time is undefined, bounded or unbounded.- Specified by:
getBeginTimeBoundednessin interfaceILcdTimeBounds- Returns:
- the boundedness of the begin time.
-
setBeginTimeBoundedness
Description copied from interface:ILcdEditableTimeBoundsAdjusts the boundedness of the begin time.- Specified by:
setBeginTimeBoundednessin interfaceILcdEditableTimeBounds- Parameters:
aBeginTimeBoundedness- the new boundedness of the begin time.- See Also:
-
getEndTimeBoundedness
Description copied from interface:ILcdTimeBoundsReturns the boundedness of the end time. This method can be used to check whether the end time is undefined, bounded or unbounded.- Specified by:
getEndTimeBoundednessin interfaceILcdTimeBounds- Returns:
- the boundedness of the end time.
-
setEndTimeBoundedness
Description copied from interface:ILcdEditableTimeBoundsAdjusts the boundedness of the end time.- Specified by:
setEndTimeBoundednessin interfaceILcdEditableTimeBounds- Parameters:
aEndTimeBoundedness- the new boundedness of the end time.- See Also:
-
equals
-
hashCode
public int hashCode() -
toString
-