|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gridsystems.nextgrid.api.pom.PemHelper
public abstract class PemHelper
Base class for ProcessImpl.
Provides functionality for the management of Process Event Model listeners, and notification of events.
Constructor Summary | |
---|---|
PemHelper()
|
Method Summary | |
---|---|
void |
addListener(nextgrid.api.pem.POMListener listener)
Adds a listener to the list. |
nextgrid.api.pom.Process |
copy()
|
void |
fireDiscovererSelected(nextgrid.api.pem.DiscoveryEvent event)
Notifies a discovererSelected event. |
void |
fireDiscoveryFailed(nextgrid.api.pem.DiscoveryEvent event)
Notifies a discoveryFailed event. |
void |
fireDiscoveryFinished(nextgrid.api.pem.DiscoveryEvent event)
Notifies a discoveryFinished event. |
void |
fireDiscoveryStarting(nextgrid.api.pem.DiscoveryEvent event)
Notifies a discoveryStarting event. |
protected void |
fireEvent(java.lang.Class<?> iface,
java.lang.String method,
java.lang.Object event)
Fires an event on all listeners using reflection. |
void |
fireProcessEvaluated()
Notifies a processEvaluated event. |
void |
fireProcessFailed(nextgrid.api.pem.ProcessEvent event)
Notifies a processFailed event. |
void |
fireProcessFailed(nextgrid.api.pom.ProcessException e)
Notifies a processFailed event. |
void |
fireProcessFinished()
Notifies a processFinished event. |
void |
fireProcessFinished(nextgrid.api.pem.ProcessEvent event)
Notifies a processFinished event. |
void |
fireProcessSelected(nextgrid.api.pem.ProcessEvent event)
Notifies a processSelected event. |
void |
fireProcessStarted()
Notifies a processStarted event. |
void |
removeListener(nextgrid.api.pem.POMListener listener)
Removes a listener from the list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface nextgrid.api.pom.Process |
---|
discover, enact, evaluate, findProcessById, findRoot, getAttribute, getAttribute, getAttribute, getAttributes, getDescription, getId, getInput, getInputs, getInputType, getName, getOutput, getOutputs, getOutputType, getParent, getUsedInputNames, getUsedOutputNames, invalidate, isEvaluated, isLazy, isValidated, prioritise, putInput, putOutput, removeInput, removeOutput, reset, setAttribute, setAttribute, setDescription, setId, setLazy, setName, setParent, unuseInput, unuseOutput, useInput, useOutput, validate |
Constructor Detail |
---|
public PemHelper()
Method Detail |
---|
public nextgrid.api.pom.Process copy()
copy
in interface nextgrid.api.pom.Process
public final void addListener(nextgrid.api.pem.POMListener listener)
addListener
in interface nextgrid.api.pom.Process
listener
- The one to addpublic final void removeListener(nextgrid.api.pem.POMListener listener)
removeListener
in interface nextgrid.api.pom.Process
listener
- The one to removepublic final void fireDiscovererSelected(nextgrid.api.pem.DiscoveryEvent event)
event
- The event to notifypublic final void fireDiscoveryStarting(nextgrid.api.pem.DiscoveryEvent event)
event
- The event to notifypublic final void fireDiscoveryFinished(nextgrid.api.pem.DiscoveryEvent event)
event
- The event to notifypublic final void fireDiscoveryFailed(nextgrid.api.pem.DiscoveryEvent event)
event
- The event to notifypublic final void fireProcessSelected(nextgrid.api.pem.ProcessEvent event)
event
- The event to notifypublic final void fireProcessFinished(nextgrid.api.pem.ProcessEvent event)
event
- The event to notifypublic final void fireProcessFailed(nextgrid.api.pem.ProcessEvent event)
event
- The event to notifypublic final void fireProcessFinished()
public final void fireProcessEvaluated()
public final void fireProcessStarted()
public final void fireProcessFailed(nextgrid.api.pom.ProcessException e)
e
- The exceptionprotected final void fireEvent(java.lang.Class<?> iface, java.lang.String method, java.lang.Object event)
iface
- The listener interface to notifymethod
- The name of the method to invokeevent
- The event to pass as parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |