|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--AbstractELExpression
Some common implementation code for ELExpressions.
| Constructor Summary | |
AbstractELExpression()
|
|
| Method Summary | |
abstract java.lang.Object |
clone()
|
protected ELExpression |
cloneSiblingMutation(ELCall parent,
GeneticParameters gp)
Returns the genetic clone of one of this expression's siblings. |
protected ELExpression |
cloneWithChildMutations(GeneticParameters gp)
Clone, genetically cloning children but perfectly cloning this expression itself. |
ELExpression |
cloneWithReplacement(ELExpression e,
int p)
default is only appropriate when cloneWithChildMutations has no children. |
protected ELExpression |
encloseInNewCallMutation(GeneticParameters gp)
Returns a clone of this expression with the children genetically cloned, surrounded by another randomly generated expression. |
ELExpression |
getNestedSubexpression(int targetNumber)
returns this. |
boolean |
hasExternalInfluences()
Returns true if the output is influenced by the environment. |
int |
numNestedSubexpressions()
Returns 1. |
ELExpression |
randomNestedSubexpression()
Returns this. |
boolean |
sameExpression(ELExpression other)
Return true if this and other are equivalent expressions (unparse to the same value). |
| Methods inherited from class java.lang.Object |
|
| Methods inherited from interface ELExpression |
evaluate, geneticClone, unparse |
| Constructor Detail |
public AbstractELExpression()
| Method Detail |
public int numNestedSubexpressions()
numNestedSubexpressions in interface ELExpressionpublic ELExpression randomNestedSubexpression()
randomNestedSubexpression in interface ELExpressionpublic boolean hasExternalInfluences()
ELExpressionhasExternalInfluences in interface ELExpressionpublic ELExpression getNestedSubexpression(int targetNumber)
getNestedSubexpression in interface ELExpression
public ELExpression cloneWithReplacement(ELExpression e,
int p)
cloneWithReplacement in interface ELExpressionELExpressionexpression - Is not cloned.
protected ELExpression cloneSiblingMutation(ELCall parent,
GeneticParameters gp)
protected ELExpression encloseInNewCallMutation(GeneticParameters gp)
protected ELExpression cloneWithChildMutations(GeneticParameters gp)
public boolean sameExpression(ELExpression other)
ELExpressionsameExpression in interface ELExpressionpublic abstract java.lang.Object clone()
clone in interface ELExpressionclone in class java.lang.Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||