|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProgramExtensionTemplate
Defines an opcode. Opcodes are used to extend Encog programs.
| Field Summary | |
|---|---|
static int |
NO_PREC
Defines a very low precidence. |
| Method Summary | |
|---|---|
ExpressionValue |
evaluate(ProgramNode actual)
Evaluate the specified actual program node, using this opcode template. |
int |
getChildNodeCount()
|
int |
getDataSize()
|
String |
getName()
|
NodeType |
getNodeType()
|
List<ParamTemplate> |
getParams()
|
int |
getPrecedence()
|
ParamTemplate |
getReturnValue()
|
boolean |
isPossibleReturnType(EncogProgramContext context,
ValueType rtn)
Determines if the specified return type is a possible return type. |
boolean |
isVariable()
|
void |
randomize(Random rnd,
List<ValueType> desiredType,
ProgramNode actual,
double minValue,
double maxValue)
Randomize this actual tree node. |
| Field Detail |
|---|
static final int NO_PREC
| Method Detail |
|---|
ExpressionValue evaluate(ProgramNode actual)
actual - The tree node in the actual program.
int getChildNodeCount()
int getDataSize()
String getName()
NodeType getNodeType()
List<ParamTemplate> getParams()
int getPrecedence()
ParamTemplate getReturnValue()
boolean isPossibleReturnType(EncogProgramContext context,
ValueType rtn)
context - The program context.rtn - The potential return type to check.
boolean isVariable()
void randomize(Random rnd,
List<ValueType> desiredType,
ProgramNode actual,
double minValue,
double maxValue)
rnd - Random number generator.desiredType - The desired type of the randomization, if allowed.actual - The actual program node to randomize.minValue - The minimum value to use for randomization.maxValue - The maximum value to use for randomization.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||