Interface Intersection
- All Superinterfaces:
Aggregateable, Browsable, Extensible, Identifiable, OsidObject
An intersection represents a crossing of paths where one can travel from one path to another.
-
Method Summary
Modifier and TypeMethodDescriptionGets a single corrdinate to represent the intersection.getIntersectionRecord(Type intersectionRecordType) Gets the intersection record corresponding to the givenIntersectionrecordType.Gets the intersecting pathIds.getPaths()Gets the intersecting paths.booleanisFork()Tests if this intersection is a fork or exit.booleanisRotary()Tests if this intersection is a rotary.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.
-
Method Details
-
getCoordinate
Coordinate getCoordinate()Gets a single corrdinate to represent the intersection.- Returns:
- the coordinate
- Compliance:
mandatory- This method must be implemented.
-
getPathIds
IdList getPathIds()Gets the intersecting pathIds.- Returns:
- the path
Ids - Compliance:
mandatory- This method must be implemented.
-
getPaths
Gets the intersecting paths.- Returns:
- the paths
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isRotary
boolean isRotary()Tests if this intersection is a rotary.- Returns:
trueif this intersection is a rotary,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
isFork
boolean isFork()Tests if this intersection is a fork or exit.- Returns:
trueif this intersection is a fork,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getIntersectionRecord
IntersectionRecord getIntersectionRecord(Type intersectionRecordType) throws OperationFailedException Gets the intersection record corresponding to the givenIntersectionrecordType. This method is used to retrieve an object implementing the requested record. TheintersectionRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(intersectionRecordType)istrue.- Parameters:
intersectionRecordType- the type of intersection record to retrieve- Returns:
- the intersection record
- Throws:
NullArgumentException-intersectionRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(intersectionRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-