com.partnersoft.v3x.apps.Staker.FieldStaker
Class StakerPostprocessing

java.lang.Object
  extended by com.partnersoft.v3x.apps.Staker.FieldStaker.StakerPostprocessing

public class StakerPostprocessing
extends java.lang.Object

This class handles all the postprocessing logic for the staker, except for actually correcting the job, which is done in Job.applyCorrections(). It listens to the staker for job events, and every time the job changes it loads the corrections, creates a report and shows the report in a window. To improve performance, the work is only done if the window is visible.


Constructor Summary
protected StakerPostprocessing(Staker inStaker)
           Only called by the staker.
 
Method Summary
 void applyCorrections()
           This function is called by the GUI when the 'apply corrections' button is pressed.
 Staker getStaker()
          
 CorrectedJob loadCorrectedJob()
           Loads the corrections for a given job.
 void toggleWindowVisibility()
           Corrections are automatically loaded while the window is visible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StakerPostprocessing

protected StakerPostprocessing(Staker inStaker)

Only called by the staker.

Parameters:
inStaker -
Method Detail

getStaker

public Staker getStaker()

Returns:

applyCorrections

public void applyCorrections()

This function is called by the GUI when the 'apply corrections' button is pressed.


loadCorrectedJob

public CorrectedJob loadCorrectedJob()

Loads the corrections for a given job. The corrections are cached, so that the corrections are only loaded once while a given job is open.

As long as there is a current job, the corrections are never null - if no corrections are available, this object tells you where they would have been found, for troubleshooting.

Returns:
the current set of corrections for the current job, or null if there is no job.

toggleWindowVisibility

public void toggleWindowVisibility()

Corrections are automatically loaded while the window is visible.