public class TLcdAIXM51AbstractAIXMTimeSlice extends TLcdAIXM51AbstractAIXMTimeSliceBase implements ILcdShapeList, ILcdTimeBounded, ILcdInvalidateable
AbstractAIXMTimeSliceType
schema type in the AIXM 5.1 XML Schema.
A timeslice describes the state of an AIXM 5.1 feature during a certain time period.
TLcdAIXM51AbstractAIXMFeature
,
Serialized FormModifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
CORRECTION_NUMBER_PROPERTY
Data property that maps to the
correctionNumber element. |
static TLcdDataProperty |
FEATURE_LIFETIME_PROPERTY
Data property that maps to the
featureLifetime element. |
static TLcdDataProperty |
INTERPRETATION_PROPERTY
Data property that maps to the
interpretation element. |
static TLcdDataProperty |
SEQUENCE_NUMBER_PROPERTY
Data property that maps to the
sequenceNumber element. |
static TLcdDataProperty |
TIME_SLICE_METADATA_PROPERTY
Data property that maps to the
timeSliceMetadata element. |
DATA_SOURCE_PROPERTY, VALID_TIME_PROPERTY
DESCRIPTION_PROPERTY, DESCRIPTION_REFERENCE_PROPERTY, ID_PROPERTY, IDENTIFIER_PROPERTY, META_DATA_PROPERTY_PROPERTY, NAME_PROPERTY
Constructor and Description |
---|
TLcdAIXM51AbstractAIXMTimeSlice(TLcdDataType aType)
Constructs a new
TLcdAIXM51AbstractAIXMTimeSlice for the given type. |
Modifier and Type | Method and Description |
---|---|
TLcdAIXM51AbstractAIXMTimeSlice |
clone()
Returns a deep clone of this object.
|
TLcdDataObject |
clone(Map aObjectDictionary)
Returns a deep clone of this object.
|
protected List<? extends ILcdShape> |
collectShapes()
Override this method to collect all shapes that needs to be included in the
ILcdShapeList
implementation of this feature. |
boolean |
contains2D(double aX,
double aY)
Checks whether this
ILcdShape contains the given point in
the 2D space. |
boolean |
contains2D(ILcdPoint aPoint)
Checks whether this
ILcdShape contains the given ILcdPoint in the 2D space. |
boolean |
contains3D(double aX,
double aY,
double aZ)
Checks whether this
ILcdShape contains the given point in
the 3D space. |
boolean |
contains3D(ILcdPoint aPoint)
Checks whether this
ILcdShape contains the given ILcdPoint in the 3D space. |
XMLGregorianCalendar |
getBeginValidTime()
Returns the begin of the valid time of this timeslice.
|
ILcdBounds |
getBounds()
Returns the
ILcdBounds by which the geometry of this ILcdBounded object
is bounded. |
long |
getCorrectionNumber()
Returns the value of the property that maps to the
correctionNumber element. |
XMLGregorianCalendar |
getEndValidTime()
Returns the end of the valid time of this timeslice.
|
TLcdGML32AbstractTimePrimitive |
getFeatureLifetime()
Returns the value of the property that maps to the
featureLifetime element. |
ILcdPoint |
getFocusPoint()
Returns the focus point of this
ILcdShape . |
ELcdAIXM51Interpretation |
getInterpretation()
Returns the value of the property that maps to the
interpretation element. |
long |
getSequenceNumber()
Returns the value of the property that maps to the
sequenceNumber element. |
ILcdShape |
getShape(int aIndex)
Returns the
ILcdShape at the given index. |
int |
getShapeCount()
Returns the number of
ILcdShape objects in the list. |
ILcdTimeBounds |
getTimeBounds()
Returns the
ILcdTimeBounds by which this object is bounded. |
TLcdAIXM51FeatureTimeSliceMetadataProperty |
getTimeSliceMetadata()
Returns the value of the property that maps to the
timeSliceMetadata element. |
void |
invalidateObject()
Notifies this object that something in its structure has been changed.
|
void |
setCorrectionNumber(long aValue)
Sets the value of the property that maps to the
correctionNumber element. |
void |
setFeatureLifetime(TLcdGML32AbstractTimePrimitive aValue)
Sets the value of the property that maps to the
featureLifetime element. |
void |
setInterpretation(ELcdAIXM51Interpretation aValue)
Sets the value of the property that maps to the
interpretation element. |
void |
setSequenceNumber(long aValue)
Sets the value of the property that maps to the
sequenceNumber element. |
void |
setTimeSliceMetadata(TLcdAIXM51FeatureTimeSliceMetadataProperty aValue)
Sets the value of the property that maps to the
timeSliceMetadata element. |
void |
setValue(TLcdDataProperty aProperty,
Object aValue)
Sets the value of the given property for this data object.
|
getDataSource, getValidTime, setDataSource, setValidTime
getDescription, getDescriptionReference, getId, getIdentifier, getMetaDataProperty, getName, setDescription, setDescriptionReference, setId, setIdentifier
getDataType, getValue, getValue, hasValue, hasValue, setValue, toString
public static final TLcdDataProperty INTERPRETATION_PROPERTY
interpretation
element.
The possible values for this property are instances of ELcdAIXM51Interpretation
.public static final TLcdDataProperty SEQUENCE_NUMBER_PROPERTY
sequenceNumber
element.
The possible values for this property are instances of long
.public static final TLcdDataProperty CORRECTION_NUMBER_PROPERTY
correctionNumber
element.
The possible values for this property are instances of long
.public static final TLcdDataProperty TIME_SLICE_METADATA_PROPERTY
timeSliceMetadata
element.
The possible values for this property are instances of TLcdAIXM51FeatureTimeSliceMetadataProperty
.public static final TLcdDataProperty FEATURE_LIFETIME_PROPERTY
featureLifetime
element.
The possible values for this property are instances of TLcdGML32TimePrimitiveProperty
.public TLcdAIXM51AbstractAIXMTimeSlice(TLcdDataType aType)
TLcdAIXM51AbstractAIXMTimeSlice
for the given type. The type
must be a subtype of AIXM51AbstractAIXMTimeSliceType
.aType
- the time slice type for which to create a new instanceprotected List<? extends ILcdShape> collectShapes()
ILcdShapeList
implementation of this feature. The default implementation implements the GML Simple Features
Profile: it collects all direct children of this feature which implements ILcdShape.List
containing all ILcdShape
elements needed to
represent
the geometry of this timeslicepublic void invalidateObject()
invalidateObject
in interface ILcdInvalidateable
public void setValue(TLcdDataProperty aProperty, Object aValue)
ILcdDataObject
Sets the value of the given property for this data object. The implementation is allowed to throw an exception if the given value can't be set.
The given property must be declared in thedata object's type
or in one of its super types. In
other words, getDataType().getProperties().contains( aProperty ) should always be true.
Otherwise, the implementation should throw an IllegalArgumentException
.setValue
in interface ILcdDataObject
setValue
in class TLcdDataObject
aProperty
- the property for which the value is to be setaValue
- the value to setTLcdDataType.getProperty(String)
public XMLGregorianCalendar getBeginValidTime()
TLcdGML32AbstractTimeSlice.getValidTime()
public XMLGregorianCalendar getEndValidTime()
TLcdGML32AbstractTimeSlice.getValidTime()
public int getShapeCount()
ILcdShapeList
ILcdShape
objects in the list.getShapeCount
in interface ILcdShapeList
ILcdShape
objects in the list.public ILcdShape getShape(int aIndex) throws IndexOutOfBoundsException
ILcdShapeList
ILcdShape
at the given index.getShape
in interface ILcdShapeList
aIndex
- a valid index in the list of ILcdShape
objects.ILcdShape
at the given index.IndexOutOfBoundsException
- when the index is not valid.public boolean contains2D(ILcdPoint aPoint)
ILcdShape
ILcdShape
contains the given ILcdPoint
in the 2D space.
Only the first two dimensions of the ILcdShape
and the ILcdPoint
are considered.contains2D
in interface ILcdShape
aPoint
- the ILcdPoint
to test.ILcdShape.contains2D(double, double)
public boolean contains3D(ILcdPoint aPoint)
ILcdShape
ILcdShape
contains the given ILcdPoint
in the 3D space.contains3D
in interface ILcdShape
aPoint
- the ILcdPoint
to test.ILcdShape.contains3D(double, double, double)
public boolean contains3D(double aX, double aY, double aZ)
ILcdShape
ILcdShape
contains the given point in
the 3D space.contains3D
in interface ILcdShape
aX
- the x coordinate of the point.aY
- the y coordinate of the point.aZ
- the z coordinate of the point.public boolean contains2D(double aX, double aY)
ILcdShape
ILcdShape
contains the given point in
the 2D space. Only the first two dimensions of the ILcdShape
are considered.contains2D
in interface ILcdShape
aX
- the x coordinate of the point.aY
- the y coordinate of the point.public ILcdPoint getFocusPoint()
ILcdShape
ILcdShape
.getFocusPoint
in interface ILcdShape
ILcdShape
.public TLcdAIXM51AbstractAIXMTimeSlice clone()
TLcdDataObject
TLcdDataObject.clone(Map)
.clone
in interface ILcdCloneable
clone
in class TLcdDataObject
Object.clone()
public TLcdDataObject clone(Map aObjectDictionary)
TLcdDataObject
ILcdDataObject
, the value is cloned by first creating a new instance via
the value.getDataType().newInstance()
method, and then cloning its properties one by one.ILcdDeepCloneable
or
ILcdCloneable
then this interface is used to clone the value.clone
in interface ILcdDeepCloneable
clone
in class TLcdDataObject
aObjectDictionary
- the Object dictionary that keeps track of the objects for which a clone has already been made,
and their corresponding clone Object.public ILcdBounds getBounds()
ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.
If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points)
the return value is unspecified.
It is highly recommended to return an undefined
bounds.
You can create undefined bounds using the default constructors
of TLcdLonLatBounds
or TLcdXYBounds
.
getBounds
in interface ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.public ILcdTimeBounds getTimeBounds()
ILcdTimeBounded
ILcdTimeBounds
by which this object is bounded.getTimeBounds
in interface ILcdTimeBounded
ILcdTimeBounds
by which this object is bounded.public ELcdAIXM51Interpretation getInterpretation()
interpretation
element.
Property indicating how the timeslice is to be interpreted. See the AIXM Temporality model for details.
INTERPRETATION_PROPERTY
property.public void setInterpretation(ELcdAIXM51Interpretation aValue)
interpretation
element.
Property indicating how the timeslice is to be interpreted. See the AIXM Temporality model for details.
aValue
- the value to set for the INTERPRETATION_PROPERTY
property.public long getSequenceNumber()
sequenceNumber
element.
Used for the identification of the Time Slice concerned. See the AIXM Temporality model for details.
SEQUENCE_NUMBER_PROPERTY
property.public void setSequenceNumber(long aValue)
sequenceNumber
element.
Used for the identification of the Time Slice concerned. See the AIXM Temporality model for details.
aValue
- the value to set for the SEQUENCE_NUMBER_PROPERTY
property.public long getCorrectionNumber()
correctionNumber
element.
Used for indicating the order of the corrections of a Time Slice. See the AIXM Temporality model for details.
CORRECTION_NUMBER_PROPERTY
property.public void setCorrectionNumber(long aValue)
correctionNumber
element.
Used for indicating the order of the corrections of a Time Slice. See the AIXM Temporality model for details.
aValue
- the value to set for the CORRECTION_NUMBER_PROPERTY
property.public TLcdAIXM51FeatureTimeSliceMetadataProperty getTimeSliceMetadata()
timeSliceMetadata
element.TIME_SLICE_METADATA_PROPERTY
property.public void setTimeSliceMetadata(TLcdAIXM51FeatureTimeSliceMetadataProperty aValue)
timeSliceMetadata
element.aValue
- the value to set for the TIME_SLICE_METADATA_PROPERTY
property.public TLcdGML32AbstractTimePrimitive getFeatureLifetime()
featureLifetime
element.
The start and end of life of the feature. See the AIXM Temporality model for details.
FEATURE_LIFETIME_PROPERTY
property.TLcdGML32TimePrimitiveProperty
public void setFeatureLifetime(TLcdGML32AbstractTimePrimitive aValue)
featureLifetime
element.
The start and end of life of the feature. See the AIXM Temporality model for details.
aValue
- the value to set for the FEATURE_LIFETIME_PROPERTY
property.