m865.datastructures
Interface Prioritizeable

All Superinterfaces:
java.lang.Comparable
All Known Implementing Classes:
BalkEvent, DepartmentStoreEvent, ElevatorArrivalEvent, Event, LoadEvent, MoveOnEvent, OffLoadEvent, PassengerArrivalEvent, PressButtonEvent, PrioritizedItem, StartTaskEvent

public interface Prioritizeable
extends java.lang.Comparable

This interface defines the key method required for an object to be Prioritizeable.


Method Summary
 boolean adjustPriority(java.lang.Comparable obj)
          A prioritizable object can have its priority raised or lowered.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

adjustPriority

boolean adjustPriority(java.lang.Comparable obj)
A prioritizable object can have its priority raised or lowered.

Parameters:
obj - a Comparable object appropriate for specifying the priority.
Returns:
true if this object has a priority that is equal to or higher than before.