codesimian
Class AddressShape

java.lang.Object
  extended by codesimian.CS
      extended by codesimian.DefaultCS
          extended by codesimian.AddressShape
All Implemented Interfaces:
CodeSimian, java.io.Serializable
Direct Known Subclasses:
AddressShape.Fractal, AddressShape.Linear, AddressShape.Root

public abstract class AddressShape
extends DefaultCS

DEPRECATED. ADDRESS-SHAPE is not a part of CS.java anymore, but it can be used to map floating point numbers to all the paths of CSs starting from a single CS.

obsolete documentation:

A set of inner classes to be used in a CS.addressShape instance variable. These are the default choices.

All address-shape CSs do not have to subclass AddressShape, but must have at least 2 parameters, and their param0 is set to the CS currently being traversed to find an address (starts as the root CS).

Their param1 is set to the value of the current address number, which also changes at every CS traversed (param0 changes also). Exec() returns the next value for param1 of the next AddressShape on the path.

See Also:
Serialized Form

Nested Class Summary
static class AddressShape.Fractal
          The first 0-.5 means to stop.
static class AddressShape.Linear
          Fast.
static class AddressShape.Root
          Similar to Linear and Fractal, except its meant to go on a root CS.
Its shape has range 0.0 to countP().
 
Field Summary
static int ADDRESS_NUMBER
          you can not instantiate AddressShape.
static int ADDRESS_START
          you can not instantiate AddressShape.
 
Fields inherited from class codesimian.CS
DESCRIPTION, END, EXECPROXY, FUEL, HEAP, JAVACODE, MYFUEL, NAME, NEWINSTANCE, NULL, PARENT, PARSEPRIORITY, PREV, TESTER
 
Constructor Summary
AddressShape()
           
 
Method Summary
 
Methods inherited from class codesimian.DefaultCS
B, C, countP, decrementMyFuel, deleteP, description, DForProxy, 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, minP, 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
 

Field Detail

ADDRESS_START

public static final int ADDRESS_START
you can not instantiate AddressShape. Its empty. Use its inner classes. * private AddressShape(){}

See Also:
Constant Field Values

ADDRESS_NUMBER

public static final int ADDRESS_NUMBER
you can not instantiate AddressShape. Its empty. Use its inner classes. * private AddressShape(){}

See Also:
Constant Field Values
Constructor Detail

AddressShape

public AddressShape()