net.sourceforge.cilib.simulator
Class ProgressText

java.lang.Object
  extended by net.sourceforge.cilib.simulator.ProgressText
All Implemented Interfaces:
ProgressListener

public class ProgressText
extends Object
implements ProgressListener

Implements a text progress meter.

Author:
jkroon

Constructor Summary
ProgressText(int simulations)
          Creates new form ProgressFrame.
 
Method Summary
 void handleProgressEvent(ProgressEvent event)
          Process the given progress event.
 void setSimulation(int simulation)
          Indicates on which event we are.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressText

public ProgressText(int simulations)
Creates new form ProgressFrame.

Parameters:
simulations - The number of simulations in total.
Method Detail

handleProgressEvent

public void handleProgressEvent(ProgressEvent event)
Description copied from interface: ProgressListener
Process the given progress event.

Specified by:
handleProgressEvent in interface ProgressListener
Parameters:
event - The progress event.

setSimulation

public void setSimulation(int simulation)
Description copied from interface: ProgressListener
Indicates on which event we are. TODO: This needs to become a ProgressEvent, same as the indication of percentage completed.

Specified by:
setSimulation in interface ProgressListener
Parameters:
simulation - The number of the simulation.


Copyright © 2009 CIRG. All Rights Reserved.