codesimian
Class AddressShape.Root

java.lang.Object
  extended by codesimian.CS
      extended by codesimian.DefaultCS
          extended by codesimian.AddressShape
              extended by codesimian.AddressShape.Root
All Implemented Interfaces:
CodeSimian, java.io.Serializable
Enclosing class:
AddressShape

public static class AddressShape.Root
extends AddressShape

Similar to Linear and Fractal, except its meant to go on a root CS.
Its shape has range 0.0 to countP(). Each param has a size 1.0 range.
After address goes through this, each CS's own address shape CS controls the address past that.
Because this will probably only be used on a root CS, its param0 will probably be that root (when DForProxy() is called).

Example: Address 3.4 goes through root's P(3) with address 0.4. After that, address should stay in range 0.0 (inclusive) to 1.0 (exclusive).
Also, if root has 10 params, address -16.6 wraps to 3.4 and returns the same.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class codesimian.AddressShape
AddressShape.Fractal, AddressShape.Linear, AddressShape.Root
 
Field Summary
 
Fields inherited from class codesimian.AddressShape
ADDRESS_NUMBER, ADDRESS_START
 
Fields inherited from class codesimian.CS
DESCRIPTION, END, EXECPROXY, FUEL, HEAP, JAVACODE, MYFUEL, NAME, NEWINSTANCE, NULL, PARENT, PARSEPRIORITY, PREV, TESTER
 
Constructor Summary
AddressShape.Root()
           
 
Method Summary
 double DForProxy()
          Returns 0 because it wraps all addresses before using them.
 int minP()
          For DForProxy().
Minimum number of parameters in param[] needed to call DForProxy().
Defines which indexs of param[] DForProxy() can use.
Functions with a different number of parameters must override this.
OVERRIDE THIS FUNCTION IF EXEC USES A DIFFERENT NUMBER OF PARAMETERS.
Default is 1.
 
Methods inherited from class codesimian.DefaultCS
B, C, countP, decrementMyFuel, deleteP, description, F, fuel, getExec, getObject, heap, I, indexP, indexPName, insertB, insertC, insertD, insertF, insertI, insertJ, insertL, insertL, insertL1, insertP, insertS, insertZ, J, javaCode, keyword, LForProxy, LForProxy, myFuel, name, newInstance, objectToCS, objectToCSArray, objectToCSArray, P, prevD, prevL, PType, S, setB, setC, setCountP, setD, setD, setExec, setF, setFuel, setI, setJ, setL, setL, setL, setL1, setMyFuel, setName, setObject, setP, setPrevExec, setS, setZ, start, toString, V, Z
 
Methods inherited from class codesimian.CS
addP, addP, addP, addP, addP, BForProxy, CForProxy, clone, cost, D, deleteP, FForProxy, IForProxy, isIllusion, javaCode, JForProxy, L, L, L, L, L, maxD, maxP, minD, overwrites, parent, parsePriority, PB, PC, PD, PF, PI, PJ, PL, prevB, prevC, prevF, prevI, prevJ, prevS, prevZ, proxyOf, PS, PZ, reflect, reflect, setB, setC, setCost, setDescription, setF, setHeap, setI, setJ, setL, setL, setParent, setParsePriority, setProxyOf, setPType, setS, setTester, setZ, SForProxy, tester, VForProxy, voidReflect, ZForProxy
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddressShape.Root

public AddressShape.Root()
Method Detail

minP

public int minP()
Description copied from class: DefaultCS
For DForProxy().
Minimum number of parameters in param[] needed to call DForProxy().
Defines which indexs of param[] DForProxy() can use.
Functions with a different number of parameters must override this.
OVERRIDE THIS FUNCTION IF EXEC USES A DIFFERENT NUMBER OF PARAMETERS.
Default is 1.

Overrides:
minP in class DefaultCS

DForProxy

public double DForProxy()
Returns 0 because it wraps all addresses before using them. No errors. Thats the same as super.chanceOfError() returns, but it is here so you do not assume it has the same chanceOfError() as AddressShape.Fractal or AddressShape.Linear. * public double chanceOfError(){ return 0; }

Specified by:
DForProxy in class DefaultCS