Package jadex.micro.examples.mandelbrot
Class DisplayService
- java.lang.Object
-
- jadex.micro.examples.mandelbrot.DisplayService
-
- All Implemented Interfaces:
IDisplayService
public class DisplayService extends java.lang.Object implements IDisplayService
The service allows displaying results in the frame managed by the service providing agent.
-
-
Field Summary
Fields Modifier and Type Field Description protected DisplayAgent
agent
The agent.protected java.util.Map<java.lang.String,SubscriptionIntermediateFuture<java.lang.Object>>
subscribers
The display subscribers.
-
Constructor Summary
Constructors Constructor Description DisplayService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>
displayIntermediateResult(ProgressData progress)
Display intermediate calculation results.IFuture<java.lang.Void>
displayResult(AreaData result)
Display the result of a calculation.ISubscriptionIntermediateFuture<java.lang.Object>
subscribeToDisplayUpdates(java.lang.String displayid)
Subscribe to display events.
-
-
-
Field Detail
-
agent
protected DisplayAgent agent
The agent.
-
subscribers
protected java.util.Map<java.lang.String,SubscriptionIntermediateFuture<java.lang.Object>> subscribers
The display subscribers.
-
-
Method Detail
-
displayResult
public IFuture<java.lang.Void> displayResult(AreaData result)
Display the result of a calculation.- Specified by:
displayResult
in interfaceIDisplayService
-
displayIntermediateResult
public IFuture<java.lang.Void> displayIntermediateResult(ProgressData progress)
Display intermediate calculation results.- Specified by:
displayIntermediateResult
in interfaceIDisplayService
-
subscribeToDisplayUpdates
public ISubscriptionIntermediateFuture<java.lang.Object> subscribeToDisplayUpdates(java.lang.String displayid)
Subscribe to display events.- Specified by:
subscribeToDisplayUpdates
in interfaceIDisplayService
-
-