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.IComponent
The 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 boolean
internalDisplayIntermediateResult
(PartDataChunk data, boolean store) Display intermediate calculation results.protected boolean
internalDisplayResult
(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:
displayResult
in interfaceIDisplayService
-
internalDisplayResult
Display the result of a calculation. -
displayIntermediateResult
Display intermediate calculation results.- Specified by:
displayIntermediateResult
in interfaceIDisplayService
-
displayIntermediateResult
Display intermediate calculation results.- Specified by:
displayIntermediateResult
in interfaceIDisplayService
-
internalDisplayIntermediateResult
Display intermediate calculation results. -
subscribeToDisplayUpdates
public jadex.future.ISubscriptionIntermediateFuture<Object> subscribeToDisplayUpdates(String displayid) Subscribe to display events.- Specified by:
subscribeToDisplayUpdates
in interfaceIDisplayService
-
getAlgorithmDefaultSettings
Get info about an algorithm (for web). todo: move?!- Specified by:
getAlgorithmDefaultSettings
in interfaceIDisplayService
- Returns:
- The info.
-
getAlgorithms
Get available algorithms.- Specified by:
getAlgorithms
in interfaceIDisplayService
- Returns:
- The algos.
-