|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.model.project.scheduling.priority.PriorityMeasure
public abstract class PriorityMeasure
Returns a single measure for the priority of a ScheduleBlock
or
a set of scheduling priorities.
Field Summary | |
---|---|
protected PriorityMeasureType |
measureType
|
protected Map<PriorityType,Float> |
priorityWeights
|
Constructor Summary | |
---|---|
PriorityMeasure()
|
|
PriorityMeasure(PriorityMeasure pm)
|
Method Summary | |
---|---|
boolean |
equals(Object other)
|
String |
getName()
Returns a short description of this method of summarizing priorities. |
abstract double |
getPriority(List<Priority> thePriorities)
Returns a number summarizing the priority of the set. |
abstract double |
getPriority(Schedulable theBlock)
Returns a number summarizing the priority of the scheduling block. |
PriorityMeasureType |
getPriorityMeasureType()
Returns the method that is being used to summarize priorities. |
float |
getWeight(PriorityType pt)
Returns the relative importance of a particular type of priority with regard to this priority measure. |
int |
hashCode()
|
void |
setWeight(PriorityType pt,
float weight)
Sets the relative importance of a particular type of priority with regard to this priority measure. |
String |
toSummaryString()
Returns a detailed description of this method of summarizing priorities. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PriorityMeasureType measureType
protected Map<PriorityType,Float> priorityWeights
Constructor Detail |
---|
public PriorityMeasure()
public PriorityMeasure(PriorityMeasure pm)
Method Detail |
---|
public PriorityMeasureType getPriorityMeasureType()
public void setWeight(PriorityType pt, float weight)
pt
- a particular type of priority.weight
- the importance this measure should attach to the priority type.public float getWeight(PriorityType pt)
pt
- a particular type of priority.
public abstract double getPriority(Schedulable theBlock)
theBlock
- a scheduling block for which a priority is needed.
public abstract double getPriority(List<Priority> thePriorities)
thePriorities
- a set of Priority
indicating an importance
with regard to a particular criteria.
public String getName()
public String toSummaryString()
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |