|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcodesimian.CSBuilder
public class CSBuilder
This class is obsolete for compiling.
It was replaced by inner classes of Compile.
Compile contains a lot of code from this class.
This class could be used for evolving code specified by a (CS) list of ints.
constructs a tree of CSs, given a sequence of ints.
Used as a CS, P(0).D() is the address where the new CS is put
(5/05 maybe it should put the compiled output in param0 instead of use param0 as an address),
and all params after that are used, in order, to build a tree.
| Field Summary | |
|---|---|
int |
treeCount
|
| Constructor Summary | |
|---|---|
CSBuilder()
|
|
CSBuilder(int nodeVars)
|
|
| Method Summary | |
|---|---|
boolean |
addCS(CS addMe)
Adds in depth-first order Returns if it was added adds enough CSs to satisfy enoughParams() but not more (returns false then) big-O(1) |
boolean |
addCS(int index)
Same as addCS(int,double) except Nums start at 0 |
boolean |
addCS(int index,
double numValue)
Makes a CS and calls addCS(CS) for it. |
int |
CSClassCount()
|
CS |
getTree()
|
static CS |
makeCS(java.lang.String CSs)
Compiles a String of CodeSimian code. |
void |
newTree()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int treeCount
| Constructor Detail |
|---|
public CSBuilder()
public CSBuilder(int nodeVars)
| Method Detail |
|---|
public int CSClassCount()
public boolean addCS(int index,
double numValue)
public boolean addCS(int index)
public boolean addCS(CS addMe)
public CS getTree()
public void newTree()
public static CS makeCS(java.lang.String CSs)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||