public interface Intersection extends OsidObject, Aggregateable
An intersection represents a crossing of paths where one can travel from one path to another.
| Modifier and Type | Method and Description |
|---|---|
Coordinate |
getCoordinate()
Gets a single corrdinate to represent the intersection.
|
IntersectionRecord |
getIntersectionRecord(Type intersectionRecordType)
Gets the intersection record corresponding to the given
Intersection record Type. |
IdList |
getPathIds()
Gets the intersecting path
Ids. |
PathList |
getPaths()
Gets the intersecting paths.
|
boolean |
isFork()
Tests if this intersection is a fork or exit.
|
boolean |
isRotary()
Tests if this intersection is a rotary.
|
getDescription, getDisplayName, getGenusType, isOfGenusTypegetId, isCurrentgetRecordTypes, hasRecordTypegetProperties, getPropertiesByRecordTypeCoordinate getCoordinate()
mandatory - This method must be implemented. IdList getPathIds()
Ids. Ids mandatory - This method must be implemented. PathList getPaths() throws OperationFailedException
OperationFailedException - unable to complete requestmandatory - This method must be implemented. boolean isRotary()
true if this intersection is a rotary,
false otherwisemandatory - This method must be implemented. boolean isFork()
true if this intersection is a fork,
false otherwisemandatory - This method must be implemented. IntersectionRecord getIntersectionRecord(Type intersectionRecordType) throws OperationFailedException
Intersection record Type. This method is used
to retrieve an object implementing the requested record. The
intersectionRecordType may be the Type returned
in getRecordTypes() or any of its parents in a
Type hierarchy where
hasRecordType(intersectionRecordType) is true .intersectionRecordType - the type of intersection record to
retrieveNullArgumentException - intersectionRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(intersectionRecordType) is false
mandatory - This method must be implemented.