|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.provisioner.OccupationDiagram
public class OccupationDiagram
This class keeps structure of an Occupation Diagram and conduct BTS algorithm
| Nested Class Summary | |
|---|---|
private class |
OccupationDiagram.NodeComp
Comparator which compare the schedulable duration of two nodes |
| Field Summary | |
|---|---|
(package private) int |
max
|
(package private) int |
maxIndex
|
(package private) TreeSet |
nodes
|
(package private) long |
RFT
|
(package private) LinkedList[] |
timeMap
|
| Constructor Summary | |
|---|---|
OccupationDiagram(long rft)
Constructor |
|
| Method Summary | |
|---|---|
void |
add(Node node)
Add tasks into the occupation diagram. |
int |
balance(int goal,
boolean print)
Run Task redistribution phase of BTS algorithm |
private void |
printNodes()
|
int |
stack(boolean print)
Run Task placement phase of BTS algorithm |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
TreeSet nodes
long RFT
LinkedList[] timeMap
int max
int maxIndex
| Constructor Detail |
|---|
public OccupationDiagram(long rft)
rft - Requested finish time(deadline) of algorithm.| Method Detail |
|---|
public void add(Node node)
node - Node to be addedprivate void printNodes()
public int stack(boolean print)
print - if true print debug message to stdout
public int balance(int goal,
boolean print)
goal - Redistribution loop is stop if maximum height of OD reach this goal value.print - if true print debug message to stdout
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||