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 SummaryFields Modifier and Type Field Description protected DisplayAgentagentThe agent.protected java.util.Map<java.lang.String,SubscriptionIntermediateFuture<java.lang.Object>>subscribersThe display subscribers.
 - 
Constructor SummaryConstructors Constructor Description DisplayService()
 - 
Method SummaryAll 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- 
agentprotected DisplayAgent agent The agent.
 - 
subscribersprotected java.util.Map<java.lang.String,SubscriptionIntermediateFuture<java.lang.Object>> subscribers The display subscribers.
 
- 
 - 
Method Detail- 
displayResultpublic IFuture<java.lang.Void> displayResult(AreaData result) Display the result of a calculation.- Specified by:
- displayResultin interface- IDisplayService
 
 - 
displayIntermediateResultpublic IFuture<java.lang.Void> displayIntermediateResult(ProgressData progress) Display intermediate calculation results.- Specified by:
- displayIntermediateResultin interface- IDisplayService
 
 - 
subscribeToDisplayUpdatespublic ISubscriptionIntermediateFuture<java.lang.Object> subscribeToDisplayUpdates(java.lang.String displayid) Subscribe to display events.- Specified by:
- subscribeToDisplayUpdatesin interface- IDisplayService
 
 
- 
 
-