|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.usa.rharder.tabusearch22.TSTabuEvent
These events are fired off by the TSEngine
and are useful
for extending the engine to include such things as long term memory
and other tabu extras. These are lightweight events that only contain
a reference to their source object.
TSEngine
,
TSEngineFinishedListener
,
TSEngineStartedListener
,
TSNewBestSolutionListener
,
TSNewCurrentSolutionListener
,
TSUnimprovingMoveListener
Constructor Summary | |
TSTabuEvent(java.lang.Object source)
Constructor that accepts the source of the event. |
Method Summary | |
java.lang.Object |
getSource()
Returns the source of the event. |
TSEngine |
getTSEngine()
Casts the source as a TSEngine
prior to returning. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public TSTabuEvent(java.lang.Object source)
source
- The source of the event.Method Detail |
public final java.lang.Object getSource()
Object
, it will always refer to the TSEngine
that produced the event.public final TSEngine getTSEngine()
source
as a TSEngine
prior to returning. It is equivalent to
(TSEngine) getSource()
.TSEngine
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |