edu.nrao.sss.model.project.scheduling.priority
Class Priority

java.lang.Object
  extended by edu.nrao.sss.model.project.scheduling.priority.Priority

public class Priority
extends Object

A measure of importance of a particular type that can be assigned a weight.

Author:
slovelan

Constructor Summary
Priority()
           
Priority(Priority otherPriority)
           
Priority(PriorityType theType, double value)
           
 
Method Summary
 int comparePriorities(Object other)
           
 boolean equals(Object other)
           
 PriorityType getPriorityType()
          Returns the PriorityType for this priority.
 double getPriorityValue()
           
 int hashCode()
           
 void setPriorityType(PriorityType aType)
           
 void setPriorityValue(double b)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Priority

public Priority()

Priority

public Priority(PriorityType theType,
                double value)

Priority

public Priority(Priority otherPriority)
Method Detail

getPriorityValue

public double getPriorityValue()

setPriorityValue

public void setPriorityValue(double b)

getPriorityType

public PriorityType getPriorityType()
Returns the PriorityType for this priority.

Returns:
the general category for this Priority; examples include a referee priority, a scheduling commitee priority, etc.

setPriorityType

public void setPriorityType(PriorityType aType)

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

comparePriorities

public int comparePriorities(Object other)


Copyright © 2009. All Rights Reserved.