|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectWorkResult
org.jgap.distr.grid.gp.JGAPResultGP
public class JGAPResultGP
Holds the result of a worker.
| Constructor Summary | |
|---|---|
JGAPResultGP(java.lang.String a_sessionName,
java.lang.String a_id,
int a_chunk,
GPPopulation a_programs,
long a_unitdone)
Constructor: Takes a population as result of a worker's computation. |
|
JGAPResultGP(java.lang.String a_sessionName,
java.lang.String a_id,
int a_chunk,
IGPProgram a_fittestProg,
long a_unitdone)
Deprecated. use other constructor with GPPopulation parameter instead |
|
| Method Summary | |
|---|---|
void |
clearFittest()
Clear the fittes program. |
int |
getChunk()
|
java.lang.String |
getDescription()
|
long |
getDurationComputation()
|
IGPProgram |
getFittest()
Deprecated. use getPopulation instead |
java.lang.Object |
getGenericData()
|
java.lang.String |
getID()
|
GPPopulation |
getPopulation()
|
java.util.Date |
getResponseDate()
|
java.lang.String |
getTitle()
|
long |
getUnitDone()
|
MasterInfo |
getWorkerInfo()
|
void |
setDescription(java.lang.String a_descr)
|
void |
setDurationComputation(long a_durationComputation)
|
void |
setGenericData(java.lang.Object a_genericData)
Adds arbitrary generic data to the result. |
void |
setResponseDate(java.util.Date a_date)
|
void |
setTitle(java.lang.String a_title)
|
void |
setWorkerInfo(MasterInfo a_workerInfo)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JGAPResultGP(java.lang.String a_sessionName,
java.lang.String a_id,
int a_chunk,
IGPProgram a_fittestProg,
long a_unitdone)
a_sessionName - arbitrary session name to distinct from other resultsa_id - ID of the result, should be uniquea_chunk - running index of request chunk, should be unique within an
identificationa_fittestProg - the fittest program determineda_unitdone - number of units done
public JGAPResultGP(java.lang.String a_sessionName,
java.lang.String a_id,
int a_chunk,
GPPopulation a_programs,
long a_unitdone)
a_sessionName - arbitrary session name to distinct from other resultsa_id - ID of the result, should be uniquea_chunk - running index of request chunk, should be unique within an
identificationa_programs - the result of a worker's computationa_unitdone - number of units done| Method Detail |
|---|
public IGPProgram getFittest()
public GPPopulation getPopulation()
public long getUnitDone()
public void setGenericData(java.lang.Object a_genericData)
a_genericData - arbitrary generic datapublic java.lang.Object getGenericData()
public int getChunk()
public MasterInfo getWorkerInfo()
public void setWorkerInfo(MasterInfo a_workerInfo)
a_workerInfo - set information about the workerpublic java.lang.String getID()
public void setResponseDate(java.util.Date a_date)
a_date - date the response was computedpublic java.util.Date getResponseDate()
public void setDescription(java.lang.String a_descr)
a_descr - arbitrary description of the resultpublic java.lang.String getDescription()
public long getDurationComputation()
public void setDurationComputation(long a_durationComputation)
public void setTitle(java.lang.String a_title)
a_title - the title to setpublic java.lang.String getTitle()
public void clearFittest()
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||