|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
org.jgap.event.GeneticEvent
public class GeneticEvent
Represents events that are fired via the EventManager when various genetic events occur. The specific kind of event is conveyed through the event name. Standard event names are provided as constants in this class.
| Field Summary | |
|---|---|
static java.lang.String |
AFTER_GENETIC_OPERATOR
Fired after a genetic operator, liek mutation or crossing over, is executed. |
static java.lang.String |
BEFORE_GENETIC_OPERATOR
Fired before a genetic operator, liek mutation or crossing over, is executed. |
static java.lang.String |
GENOTYPE_EVOLVED_EVENT
Public constant representing the name of the event that is fired each time a Genotype is finished with a single evolution cycle. |
static java.lang.String |
GPGENOTYPE_EVOLVED_EVENT
|
static java.lang.String |
GPGENOTYPE_NEW_BEST_SOLUTION
|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
GeneticEvent(java.lang.String a_eventName,
java.lang.Object a_source)
Constructs a new GeneticEvent of the given name. |
|
GeneticEvent(java.lang.String a_eventName,
java.lang.Object a_source,
java.lang.Object a_value)
Constructs a new GeneticEvent of the given name. |
|
| Method Summary | |
|---|---|
java.lang.String |
getEventName()
Retrieves the name of this event, which can be used to identify the type of event. |
java.lang.Object |
getValue()
|
| 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 |
| Field Detail |
|---|
public static final java.lang.String GENOTYPE_EVOLVED_EVENT
public static final java.lang.String GPGENOTYPE_EVOLVED_EVENT
public static final java.lang.String GPGENOTYPE_NEW_BEST_SOLUTION
public static final java.lang.String BEFORE_GENETIC_OPERATOR
public static final java.lang.String AFTER_GENETIC_OPERATOR
| Constructor Detail |
|---|
public GeneticEvent(java.lang.String a_eventName,
java.lang.Object a_source)
a_eventName - the name of the eventa_source - the genetic object that acted as the source of the event.
The type of this object will be dependent on the kind of event (which can
be identified by the event name). It may not be null
java.lang.IllegalArgumentException - if the given source object is null
public GeneticEvent(java.lang.String a_eventName,
java.lang.Object a_source,
java.lang.Object a_value)
a_eventName - the name of the eventa_source - the genetic object that acted as the source of the event.
The type of this object will be dependent on the kind of event (which can
be identified by the event name). It may not be nulla_value - informative value of the event
java.lang.IllegalArgumentException - if the given source object is null| Method Detail |
|---|
public java.lang.String getEventName()
public java.lang.Object getValue()
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||