Package jadex.micro.examples.mandelbrot
Class GenerateService
- java.lang.Object
-
- jadex.micro.examples.mandelbrot.GenerateService
-
- All Implemented Interfaces:
IGenerateService
public class GenerateService extends java.lang.Object implements IGenerateService
Generate service implementation.
-
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccess
agent
The agent.static IFractalAlgorithm[]
ALGORITHMS
The available algorithms.protected ServicePoolManager
manager
The service pool manager for calculation services.protected GeneratePanel
panel
The generate panel.
-
Constructor Summary
Constructors Constructor Description GenerateService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IFuture<AreaData>
distributeWork(AreaData data)
Distribute the work to available or newly created calculation services.IFuture<AreaData>
generateArea(AreaData data)
Generate a specific area using a defined x and y size.IFuture<java.lang.Void>
shutdown()
Stop the service.void
start()
Create a new service.
-
-
-
Field Detail
-
ALGORITHMS
public static IFractalAlgorithm[] ALGORITHMS
The available algorithms.
-
agent
protected IInternalAccess agent
The agent.
-
panel
protected GeneratePanel panel
The generate panel.
-
manager
protected ServicePoolManager manager
The service pool manager for calculation services.
-
-
Method Detail
-
start
public void start()
Create a new service.
-
shutdown
public IFuture<java.lang.Void> shutdown()
Stop the service.
-
generateArea
public IFuture<AreaData> generateArea(AreaData data)
Generate a specific area using a defined x and y size.- Specified by:
generateArea
in interfaceIGenerateService
-
-