mil.af.afit.router
Class KernelSolverEvent

java.lang.Object
  |
  +--mil.af.afit.router.KernelSolverEvent

public class KernelSolverEvent
extends java.lang.Object

These events get passed from the kernel solver to interested listeners.

Since:
1.0
See Also:
Kernel, KernelSolver, KernelSolverListener

Field Summary
static int NEW_BEST_SOLUTION
          The event type when the KernelSolver has found a new best solution.
static int PERCENT_DONE
          The event type when the KernelSolver has reported its progress.
static int PRIORITY_MODEL_CHANGED
          The event type when the KernelSolver is working on a new priority model.
static int SOLVER_FINISHED
          The event type when the KernelSolver has finished.
static int SOLVER_STARTED
          The event type when the KernelSolver has started.
 
Constructor Summary
KernelSolverEvent(int eventType, java.lang.Object source)
          Constructor for KernelSolverEvent
 
Method Summary
 int getEventType()
          Returns the event type.
 KernelSolver getKernelSolver()
          Returns the source as a KernelSolver.
 java.lang.Object getSource()
          Returns the source of the event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOLVER_STARTED

public static final int SOLVER_STARTED
The event type when the KernelSolver has started.
Since:
1.0

SOLVER_FINISHED

public static final int SOLVER_FINISHED
The event type when the KernelSolver has finished.
Since:
1.0

PERCENT_DONE

public static final int PERCENT_DONE
The event type when the KernelSolver has reported its progress.
Since:
1.0

NEW_BEST_SOLUTION

public static final int NEW_BEST_SOLUTION
The event type when the KernelSolver has found a new best solution.
Since:
1.0

PRIORITY_MODEL_CHANGED

public static final int PRIORITY_MODEL_CHANGED
The event type when the KernelSolver is working on a new priority model.
Since:
1.0
Constructor Detail

KernelSolverEvent

public KernelSolverEvent(int eventType,
                         java.lang.Object source)
Constructor for KernelSolverEvent
Parameters:
eventType - event type
source - source of the event. Normally this is passed.
Since:
1.0
Method Detail

getSource

public final java.lang.Object getSource()
Returns the source of the event.
Returns:
source of the event.
Since:
1.0

getKernelSolver

public final KernelSolver getKernelSolver()
Returns the source as a KernelSolver. This is identical to (KernelSolver) e.getSource().
Returns:
source of the event as a KernelSolver
Since:
1.0
See Also:
KernelSolver

getEventType

public final int getEventType()
Returns the event type.
Returns:
event type
Since:
1.0