jadex.micro.examples.mandelbrot
Class DisplayService

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

public class DisplayService
extends BasicService
implements IDisplayService

The service allows displaying results in the frame managed by the service providing agent.


Field Summary
protected  DisplayAgent 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
DisplayService(DisplayAgent agent)
          Create a new display service.
 
Method Summary
 IFuture displayIntermediateResult(ProgressData progress)
          Display intermediate calculation results.
 IFuture displayResult(AreaData result)
          Display the result of a calculation.
 
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 DisplayAgent agent
The agent.

Constructor Detail

DisplayService

public DisplayService(DisplayAgent agent)
Create a new display service.

Method Detail

displayResult

public IFuture displayResult(AreaData result)
Display the result of a calculation.

Specified by:
displayResult in interface IDisplayService

displayIntermediateResult

public IFuture displayIntermediateResult(ProgressData progress)
Display intermediate calculation results.

Specified by:
displayIntermediateResult in interface IDisplayService


Copyright © 2010. All Rights Reserved.