public interface ILcdEditableRoute extends ILcdRoute
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.
Modifier and Type | Method and Description |
---|---|
int |
addSegmentBySequenceNumber(ILcdRouteSegment aSegment)
Adds a segment to this route.
|
int |
insertSegmentAt(ILcdRouteSegment aSegment,
int aIndex)
Adds a segment to this route at the specified index.
|
void |
removeSegment(ILcdRouteSegment aSegment)
Removes a
ILcdRouteSegment object from this route. |
void |
removeSegmentAt(int anIndex)
Removes the
ILcdRouteSegment object on the specified index from the
ILcdEditableRoute . |
getSegment, getSegmentCount
getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
getShape, getShapeCount
contains2D, contains2D, contains3D, contains3D, getFocusPoint
getBounds
clone
int insertSegmentAt(ILcdRouteSegment aSegment, int aIndex)
aSegment
- the ILcdRouteSegment
to be added.aIndex
- the index at which the segment is to be insertedint addSegmentBySequenceNumber(ILcdRouteSegment aSegment)
aSegment
- the ILcdRouteSegment
to be added.void removeSegment(ILcdRouteSegment aSegment)
ILcdRouteSegment
object from this route.aSegment
- the <ILcdRouteSegment
object to be removedvoid removeSegmentAt(int anIndex)
ILcdRouteSegment
object on the specified index from the
ILcdEditableRoute
.anIndex
- the index in the ILcdEditableRoute
where the
ILcdRouteSegment
object must be removed