jadex.micro.examples.mandelbrot
Class CalculateService
java.lang.Object
jadex.commons.service.BasicService
jadex.micro.examples.mandelbrot.CalculateService
- All Implemented Interfaces:
- IRemotable, IInternalService, IService, ICalculateService
public class CalculateService
- extends BasicService
- implements ICalculateService
Calculate service implementation.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
agent
protected CalculateAgent agent
- The agent.
CalculateService
public CalculateService(CalculateAgent agent)
- Create a new service.
calculateArea
public IFuture calculateArea(AreaData data)
- Calculate colors for an area of points.
- Specified by:
calculateArea in interface ICalculateService
determineColor
protected int determineColor(double xn,
double yn,
int max)
- Determine the color of a point.
Copyright © 2010. All Rights Reserved.