public class Mediator extends Object
Mediator manages components and dataflows in the ACTF by
collaborating with the Eclipse framework. If Mediator detects a
status change in ACTF components, it will send MediatorEvent to
ACTF components and other registered EventListeners.| Modifier and Type | Method and Description |
|---|---|
void |
addMediatorEventListener(IMediatorEventListener listener)
Registers the
IMediatorEventListener to the Mediator. |
static Mediator |
getInstance()
Gets Mediator instance.
|
IACTFReport |
getReport(IACTFReportGenerator generator)
Gets current report submitted from the report generator.
|
boolean |
removeMediatorEventListener(IMediatorEventListener listener)
Removes the
IMediatorEventListener from the Mediator. |
void |
setReport(IACTFReportGenerator generator,
IACTFReport report)
Sets the report to Mediator.
|
public static Mediator getInstance()
public void setReport(IACTFReportGenerator generator, IACTFReport report)
MediatorEvent (report changed).generator - generator of the reportreport - new report to setpublic IACTFReport getReport(IACTFReportGenerator generator)
generator - target report generatorpublic void addMediatorEventListener(IMediatorEventListener listener)
IMediatorEventListener to the Mediator.listener - the listener to registerpublic boolean removeMediatorEventListener(IMediatorEventListener listener)
IMediatorEventListener from the Mediator.listener - the listener to remove