com.partnersoft.v3x.apps.Staker
Class JobSummaryIterator

java.lang.Object
  extended by com.partnersoft.v3x.apps.Staker.JobSummaryIterator
Direct Known Subclasses:
SEDCJobIterator

public class JobSummaryIterator
extends java.lang.Object

A job iterator that summarizes staked materials by type.


Field Summary
protected  Job currentJob
          The job being iterated.
protected  Unit currentUnit
          The current unit.
protected  int numberExisting
          The number of existing units of that type.
protected  int numberNew
          The number of new units of that type.
protected  int numberRetire
          The number of units to be retired of that type.
 
Constructor Summary
JobSummaryIterator(Job jobby)
          Create a new JobSummaryIterator over the given job.
 
Method Summary
protected  void forEachUnit()
          Called for each Unit.
 void start()
          Begin the iteration, and thus the work.
protected  void theJob()
          Called first.
protected  void whenFinished()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentJob

protected Job currentJob
The job being iterated. Subclasses should treat this as read-only.


currentUnit

protected Unit currentUnit
The current unit. Subclasses should treat this as read-only.


numberNew

protected int numberNew
The number of new units of that type. Subclasses should treat this as read-only.


numberExisting

protected int numberExisting
The number of existing units of that type. Subclasses should treat this as read-only.


numberRetire

protected int numberRetire
The number of units to be retired of that type. Subclasses should treat this as read-only.

Constructor Detail

JobSummaryIterator

public JobSummaryIterator(Job jobby)
Create a new JobSummaryIterator over the given job.

Method Detail

start

public void start()
Begin the iteration, and thus the work.


theJob

protected void theJob()
Called first. Job-specific actions should occur here.


forEachUnit

protected void forEachUnit()
Called for each Unit. Unit-specific actions should occur here.


whenFinished

protected void whenFinished()