FreeHEP API
Version v1.2.2

org.freehep.record.loop.event
Class LoopProgressEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--org.freehep.record.loop.event.LoopProgressEvent
All Implemented Interfaces:
Serializable

public class LoopProgressEvent
extends EventObject

This class is used to update RecordLoopListener objects on the progress of a SequentialRecordLoop.

Version:
$Id: LoopProgressEvent.java,v 1.2 2003/05/27 22:35:51 duns Exp $
Author:
patton
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
LoopProgressEvent(Object source, double fraction)
          Create an instance of this class with the specified progress.
 
Method Summary
 double getFraction()
          Returns the fraction of the loop that has been completed.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoopProgressEvent

public LoopProgressEvent(Object source,
                         double fraction)
Create an instance of this class with the specified progress.

Parameters:
source - the SequentialRecordLoop object which generated this event.
fraction - the fraction of a loop that has been completed.
Method Detail

getFraction

public double getFraction()
Returns the fraction of the loop that has been completed.

Returns:
the fraction of the loop that has been completed.

FreeHEP API
Version v1.2.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.