org.coinor.opents
Class TabuSearchEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.coinor.opents.TabuSearchEvent
All Implemented Interfaces:
java.io.Serializable

public class TabuSearchEvent
extends java.util.EventObject

These events are fired off by the TabuSearch and are useful for extending the tabu search 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.

This code is licensed for public use under the Common Public License version 0.5.
The Common Public License, developed by IBM and modeled after their industry-friendly IBM Public License, differs from other common open source licenses in several important ways:

Copyright 2001 Robert Harder

Since:
1.0
See Also:
TabuSearch, TabuSearchListener, EventObject, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TabuSearchEvent(java.lang.Object source)
          Constructor that accepts the source of the event.
 
Method Summary
 TabuSearch getTabuSearch()
          Casts the source as a TabuSearch prior to returning.
 
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

TabuSearchEvent

public TabuSearchEvent(java.lang.Object source)
Constructor that accepts the source of the event.

Parameters:
source - The source of the event.
Since:
1.0
Method Detail

getTabuSearch

public final TabuSearch getTabuSearch()
Casts the source as a TabuSearch prior to returning. It is equivalent to (TabuSearch) getSource().

Returns:
source as TabuSearch
Since:
1.0