jadex.micro.examples.mandelbrot
Class CalculateService

java.lang.Object
  extended by jadex.commons.service.BasicService
      extended by jadex.micro.examples.mandelbrot.CalculateService
All Implemented Interfaces:
IRemotable, IInternalService, IService, ICalculateService

public class CalculateService
extends BasicService
implements ICalculateService

Calculate service implementation.


Field Summary
protected  CalculateAgent agent
          The agent.
 
Fields inherited from class jadex.commons.service.BasicService
idcnt, properties, shutdowned, sid, started, startfutures
 
Fields inherited from interface jadex.commons.service.IService
EMPTY_SERVICES
 
Constructor Summary
CalculateService(CalculateAgent agent)
          Create a new service.
 
Method Summary
 IFuture calculateArea(AreaData data)
          Calculate colors for an area of points.
protected  int determineColor(double xn, double yn, int max)
          Determine the color of a point.
 
Methods inherited from class jadex.commons.service.BasicService
createServiceIdentifier, generateServiceName, getPropertyMap, getServiceIdentifier, isValid, setPropertyMap, shutdownService, signalStarted, startService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jadex.commons.service.IService
getPropertyMap, getServiceIdentifier, signalStarted
 

Field Detail

agent

protected CalculateAgent agent
The agent.

Constructor Detail

CalculateService

public CalculateService(CalculateAgent agent)
Create a new service.

Method Detail

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.