Interface SpeedZoneSearchOrder

All Superinterfaces:
Extensible, OsidBrowsableSearchOrder, OsidExtensibleSearchOrder, OsidIdentifiableSearchOrder, OsidObjectSearchOrder, OsidOperableSearchOrder, OsidRuleSearchOrder, OsidSearchOrder, Suppliable

public interface SpeedZoneSearchOrder extends OsidRuleSearchOrder

An interface for specifying the ordering of search results.

  • Method Details

    • orderByPath

      void orderByPath(SearchOrderStyle style)
      Orders the results by path.
      Parameters:
      style - search order style
      Throws:
      NullArgumentException - style is null
      Compliance:
      mandatory - This method must be implemented.
    • supportsPathSearchOrder

      boolean supportsPathSearchOrder()
      Tests if a path search order is available.
      Returns:
      true if a path search order is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getPathSearchOrder

      PathSearchOrder getPathSearchOrder()
      Gets a path search order.
      Returns:
      the path search order
      Throws:
      UnimplementedException - supportsPathSearchOrder() is false
      Compliance:
      optional - This method must be implemented if {@code supportsPathSearchOrder()} is {@code true} .
    • orderByLength

      void orderByLength(SearchOrderStyle style)
      Orders the results by the length of the zone.
      Parameters:
      style - search order style
      Throws:
      NullArgumentException - style is null
      Compliance:
      mandatory - This method must be implemented.
    • orderBySpeedLimit

      void orderBySpeedLimit(SearchOrderStyle style)
      Specifies a preference for ordering the results by speed limit.
      Parameters:
      style - search order style
      Throws:
      NullArgumentException - style is null
      Compliance:
      mandatory - This method must be implemented.
    • getSpeedZoneSearchOrderRecord

      SpeedZoneSearchOrderRecord getSpeedZoneSearchOrderRecord(Type speedZoneRecordType) throws OperationFailedException
      Gets the speed zone search order record corresponding to the given speed zone record Type . Multiple retrievals return the same underlying object.
      Parameters:
      speedZoneRecordType - a speed zone record type
      Returns:
      the speed zone search order record
      Throws:
      NullArgumentException - speedZoneRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(speedZoneRecordType) is false
      Compliance:
      mandatory - This method must be implemented.