Package com.luciad.ais.model.route
Interface ILcdEditableRoute
- All Superinterfaces:
Cloneable,ILcdBounded,ILcdCloneable,ILcdDataObject,ILcdRoute,ILcdShape,ILcdShapeList,Serializable
- All Known Subinterfaces:
ILcdEditableATSRoute,ILcdEditableMilitaryTrainingRoute
- All Known Implementing Classes:
TLcdATSRoute,TLcdFeaturedATSRoute,TLcdFeaturedMilitaryTrainingRoute,TLcdMilitaryTrainingRoute,TLcdSegmentBasedRoute
This interface is an extension of the
ILcdRoute
interface that allows to change the attributes, relationships
and geometry of a route.
Attributes and relationships in AIS domain objects can be required or optional. When unspecified, an attribute or relationship is optional. Note that most optional attributes are modeled using features.
In future releases of AIS, optional attributes or relationship may be added to this interface. When this would happen, existing implementations may just provide an empty implementation modifying or setting these new attributes or relationships. This will require a minimal effort to update existing code to a new version of AIS.
-
Method Summary
Modifier and TypeMethodDescriptionintaddSegmentBySequenceNumber(ILcdRouteSegment aSegment) Adds a segment to this route.intinsertSegmentAt(ILcdRouteSegment aSegment, int aIndex) Adds a segment to this route at the specified index.voidremoveSegment(ILcdRouteSegment aSegment) Removes aILcdRouteSegmentobject from this route.voidremoveSegmentAt(int anIndex) Removes theILcdRouteSegmentobject on the specified index from theILcdEditableRoute.Methods inherited from interface com.luciad.shape.ILcdBounded
getBoundsMethods inherited from interface com.luciad.util.ILcdCloneable
cloneMethods inherited from interface com.luciad.datamodel.ILcdDataObject
getDataType, getValue, getValue, hasValue, hasValue, setValue, setValueMethods inherited from interface com.luciad.ais.model.route.ILcdRoute
getSegment, getSegmentCountMethods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains2D, contains3D, contains3D, getFocusPointMethods inherited from interface com.luciad.shape.ILcdShapeList
getShape, getShapeCount
-
Method Details
-
insertSegmentAt
Adds a segment to this route at the specified index.- Parameters:
aSegment- theILcdRouteSegmentto be added.aIndex- the index at which the segment is to be inserted- Returns:
- the position of the added segment in this route
-
addSegmentBySequenceNumber
Adds a segment to this route. The position at which the segment is inserted is determined by looking at the segment's sequence number.- Parameters:
aSegment- theILcdRouteSegmentto be added.- Returns:
- the position of the added segment in this route
-
removeSegment
Removes aILcdRouteSegmentobject from this route.- Parameters:
aSegment- theILcdRouteSegmentobject to be removed
-
removeSegmentAt
void removeSegmentAt(int anIndex) Removes theILcdRouteSegmentobject on the specified index from theILcdEditableRoute.- Parameters:
anIndex- the index in theILcdEditableRoutewhere theILcdRouteSegmentobject must be removed
-