Package jadex.micro.mandelbrot.display
Class DisplayService
java.lang.Object
jadex.micro.mandelbrot.display.DisplayService
- All Implemented Interfaces:
IDisplayService
The service allows displaying results in the frame
managed by the service providing agent.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jadex.core.IComponentThe agent.Store results till display subscribedThe display subscribers. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjadex.future.IFuture<Void>Display intermediate calculation results.jadex.future.IFuture<Void>displayIntermediateResult(ProgressData progress) Display intermediate calculation results.jadex.future.IFuture<Void>displayResult(AreaData result) Display the result of a calculation.jadex.future.IFuture<AreaData>Get info about an algorithm (for web).jadex.future.IFuture<List<Class<IFractalAlgorithm>>>Get available algorithms.protected booleaninternalDisplayIntermediateResult(PartDataChunk data, boolean store) Display intermediate calculation results.protected booleaninternalDisplayResult(AreaData result, boolean store) Display the result of a calculation.jadex.future.ISubscriptionIntermediateFuture<Object>subscribeToDisplayUpdates(String displayid) Subscribe to display events.
-
Field Details
-
agent
protected jadex.core.IComponent agentThe agent. -
subscribers
The display subscribers. -
storedresults
Store results till display subscribed
-
-
Constructor Details
-
DisplayService
public DisplayService()
-
-
Method Details
-
displayResult
Display the result of a calculation.- Specified by:
displayResultin interfaceIDisplayService
-
internalDisplayResult
Display the result of a calculation. -
displayIntermediateResult
Display intermediate calculation results.- Specified by:
displayIntermediateResultin interfaceIDisplayService
-
displayIntermediateResult
Display intermediate calculation results.- Specified by:
displayIntermediateResultin interfaceIDisplayService
-
internalDisplayIntermediateResult
Display intermediate calculation results. -
subscribeToDisplayUpdates
public jadex.future.ISubscriptionIntermediateFuture<Object> subscribeToDisplayUpdates(String displayid) Subscribe to display events.- Specified by:
subscribeToDisplayUpdatesin interfaceIDisplayService
-
getAlgorithmDefaultSettings
Get info about an algorithm (for web). todo: move?!- Specified by:
getAlgorithmDefaultSettingsin interfaceIDisplayService- Returns:
- The info.
-
getAlgorithms
Get available algorithms.- Specified by:
getAlgorithmsin interfaceIDisplayService- Returns:
- The algos.
-