|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.classes.Data
edu.isi.pegasus.planner.classes.Notifications
public class Notifications
A container class that stores all the notifications that need to be done indexed by the various conditions.
| Field Summary | |
|---|---|
private EnumMap<Invoke.WHEN,List<Invoke>> |
mInvokeMap
An enum map that associates the various notification events with the list of actions that need to be taken. |
| Fields inherited from class edu.isi.pegasus.planner.classes.Data |
|---|
mLogger, mLogMsg |
| Constructor Summary | |
|---|---|
Notifications()
The default constructor. |
|
| Method Summary | |
|---|---|
void |
add(Invoke notification)
Adds a Invoke object correpsonding to a notification. |
private void |
addAll(Invoke.WHEN when,
Collection<Invoke> invokes)
Convenience method at add all the notifications corresponding to a particular event |
void |
addAll(Notifications notifications)
Adds all the notifications passed to the underlying container. |
Object |
clone()
Returns the clone of the object. |
Collection<Invoke> |
getNotifications(Invoke.WHEN when)
Returns a collection of all the notifications that need to be done for a particular condition |
boolean |
isEmpty()
Returns a boolean indicating whether the notifications object is empty or not. |
void |
reset()
Resets the internal invoke map. |
String |
toString()
Returns a String description of the object |
| Methods inherited from class edu.isi.pegasus.planner.classes.Data |
|---|
setToString, vectorToString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private EnumMap<Invoke.WHEN,List<Invoke>> mInvokeMap
| Constructor Detail |
|---|
public Notifications()
| Method Detail |
|---|
public void reset()
public void add(Invoke notification)
notification - the notification objectpublic void addAll(Notifications notifications)
notifications - the notification objectpublic Collection<Invoke> getNotifications(Invoke.WHEN when)
when - the condition
public boolean isEmpty()
public Object clone()
clone in class Objectpublic String toString()
toString in class Data
private void addAll(Invoke.WHEN when,
Collection<Invoke> invokes)
when - when does the event happennotifications - the list of notificiations
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||