Interface IntersectionQuery

All Superinterfaces:
Extensible, OsidAggregateableQuery, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, Suppliable

public interface IntersectionQuery extends OsidObjectQuery, OsidAggregateableQuery

This is the query for searching intersections. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR .

  • Method Details

    • matchCoordinate

      void matchCoordinate(Coordinate coordinate, boolean match)
      Match intersections overlapping with the given coordinate.
      Parameters:
      coordinate - a coordinate
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - coordinate is null
      Compliance:
      mandatory - This method must be implemented.
    • clearCoordinateTerms

      void clearCoordinateTerms()
      Clears the coordinate query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchContainingSpatialUnit

      void matchContainingSpatialUnit(SpatialUnit spatialUnit, boolean match)
      Matches intersections within the specified SpatialUnit .
      Parameters:
      spatialUnit - a spatial unit
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - spatialUnit is null
      Compliance:
      mandatory - This method must be implemented.
    • clearContainingSpatialUnitTerms

      void clearContainingSpatialUnitTerms()
      Clears the spatial unit terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchPathId

      void matchPathId(Id pathId, boolean match)
      Sets the path Id for this query to match routes using a designated path.
      Parameters:
      pathId - the path Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - pathId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearPathIdTerms

      void clearPathIdTerms()
      Clears the path Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsPathQuery

      boolean supportsPathQuery()
      Tests if a PathQuery is available.
      Returns:
      true if a path query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getPathQuery

      PathQuery getPathQuery()
      Gets the query for a path. Multiple retrievals produce a nested OR term.
      Returns:
      the path query
      Throws:
      UnimplementedException - supportsPathQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsPathQuery()} is {@code true} .
    • matchAnyPath

      void matchAnyPath(boolean match)
      Matches intersections with any designated path.
      Parameters:
      match - true to match routes with any path, false to match routes with no path
      Compliance:
      mandatory - This method must be implemented.
    • clearPathTerms

      void clearPathTerms()
      Clears the path query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchRotary

      void matchRotary(boolean match)
      Matches rotaries.
      Parameters:
      match - true to match rotaries, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • clearRotaryTerms

      void clearRotaryTerms()
      Clears the rotary query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchFork

      void matchFork(boolean match)
      Matches forks.
      Parameters:
      match - true to match forks, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • clearForkTerms

      void clearForkTerms()
      Clears the fork query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchMapId

      void matchMapId(Id mapId, boolean match)
      Sets the map Id for this query to match routes assigned to maps.
      Parameters:
      mapId - the map Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - mapId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearMapIdTerms

      void clearMapIdTerms()
      Clears the map Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsMapQuery

      boolean supportsMapQuery()
      Tests if a MapQuery is available.
      Returns:
      true if a map query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getMapQuery

      MapQuery getMapQuery()
      Gets the query for a map. Multiple retrievals produce a nested OR term.
      Returns:
      the map query
      Throws:
      UnimplementedException - supportsMapQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsMapQuery()} is {@code true} .
    • clearMapTerms

      void clearMapTerms()
      Clears the map query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getIntersectionQueryRecord

      IntersectionQueryRecord getIntersectionQueryRecord(Type intersectionRecordType) throws OperationFailedException
      Gets the intersection query record corresponding to the given Intersection record Type . Multiple record retrievals produce a nested OR term.
      Parameters:
      intersectionRecordType - an intersection record type
      Returns:
      the intersection query record
      Throws:
      NullArgumentException - intersectionRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(intersectionRecordType) is false
      Compliance:
      mandatory - This method must be implemented.