|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
It represents a task, more specifically a function. The arguments and resulted values are integers.
| Method Summary | |
void |
changeBonuses(double multiplier)
Multiplies the bonuses via multiplying the bonus's part above 1.0. |
boolean |
checkActivity(int[] input,
int[] output)
Checks an IO activity whether it performs the represented task. |
int |
getCounter()
Gets the value of task counter. |
int |
getID()
Returns the internal ID of the task. |
int |
getInputSize()
Returns the number of input arguments. |
double |
getMeritMultiplier(int nth)
Returns the merit multiplier when the task is performed. |
java.lang.String |
getName()
Name specification: groupname_idname_inputnumber_outputnumber |
int |
getNumberOfRewardedPerforms()
Not all executions of a task are rewarded. |
int |
getOutputSize()
Returns the number of generated values. |
void |
increaseCounter()
If the task is performed, the counter should be increased. |
void |
setID(int id)
Sets the internal ID |
void |
setMeritMultipliers(double[] meritmultipliers)
Sets the meritmultipliers. |
boolean |
shouldBeCleared()
Answers the question: Should the I/O-buffer (@see Metabolism) be cleared after completing this task. |
| Method Detail |
public int getInputSize()
public int getOutputSize()
public boolean checkActivity(int[] input,
int[] output)
public double getMeritMultiplier(int nth)
nth - The number indicating how many times the task was performed.public void setMeritMultipliers(double[] meritmultipliers)
public int getNumberOfRewardedPerforms()
public void changeBonuses(double multiplier)
public boolean shouldBeCleared()
public void increaseCounter()
public int getCounter()
public java.lang.String getName()
public int getID()
public void setID(int id)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||