jadex.micro.examples.mandelbrot
Class ProgressService

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

public class ProgressService
extends BasicService
implements IProgressService

Progress 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
ProgressService(CalculateAgent agent)
          Create a new service.
 
Method Summary
 IFuture getProgress(Object taskid)
          Get the progress (percentage as integer) of a given task.
 
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

ProgressService

public ProgressService(CalculateAgent agent)
Create a new service.

Method Detail

getProgress

public IFuture getProgress(Object taskid)
Get the progress (percentage as integer) of a given task.

Specified by:
getProgress in interface IProgressService
Parameters:
taskid - The id of the task.
Returns:
A future object holding the progress as a percentage integer value.


Copyright © 2010. All Rights Reserved.