Interface Intersection

All Superinterfaces:
Aggregateable, Browsable, Extensible, Identifiable, OsidObject

public interface Intersection extends OsidObject, Aggregateable

An intersection represents a crossing of paths where one can travel from one path to another.

  • 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 path Ids.
      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:
      true if this intersection is a rotary, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • isFork

      boolean isFork()
      Tests if this intersection is a fork or exit.
      Returns:
      true if this intersection is a fork, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getIntersectionRecord

      IntersectionRecord getIntersectionRecord(Type intersectionRecordType) throws OperationFailedException
      Gets the intersection record corresponding to the given 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.
      Parameters:
      intersectionRecordType - the type of intersection record to retrieve
      Returns:
      the intersection record
      Throws:
      NullArgumentException - intersectionRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(intersectionRecordType) is false
      Compliance:
      mandatory - This method must be implemented.