codesimian
Class Exec.FuelNoPrev

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

public static class Exec.FuelNoPrev
extends Exec

CS execMe = this.P(0); Normally returns execMe.DForProxy(), but returns execMe.prevD() if:
-- execMe.fuel().D() <= 0.0
If execMe is executed, CHANGES:
-- decreases execMe.fuel() by execMe.cost()
WARNING: Sometimes returns prevExec, but never sets it. PrevExec might always be 0.
This class automatically generated by Exec.javaCode(null, false, true, false, false)

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class codesimian.Exec
Exec.Calc, Exec.CalcFuel, Exec.CalcFuelNan, Exec.CalcFuelNanNoPrev, Exec.CalcFuelNoPrev, Exec.CalcNan, Exec.CalcNanNoPrev, Exec.CalcNoPrev, Exec.Fuel, Exec.FuelNan, Exec.FuelNanNoPrev, Exec.FuelNoPrev, Exec.Nan, Exec.NanNoPrev, Exec.NoPrev, Exec.SetPrevExecButNeverUseIt, Exec.SubclassDescription
 
Field Summary
 
Fields inherited from class codesimian.Exec
subclassNameLimitCalcExec, subclassNameLimitFuel, subclassNameLimitValidNumber, subclassNameSetsPrevExec
 
Fields inherited from class codesimian.CS
DESCRIPTION, END, EXECPROXY, FUEL, HEAP, JAVACODE, MYFUEL, NAME, NEWINSTANCE, NULL, PARENT, PARSEPRIORITY, PREV, TESTER
 
Constructor Summary
Exec.FuelNoPrev()
           
 
Method Summary
 double D()
          Execute this CS and cast to double.
 boolean limitFuel()
          true
 boolean setsPrevExec()
          false
 
Methods inherited from class codesimian.Exec
addSubclass, detailString, DForProxy, getClassDescription, getSubclass, instantiateSubclass, javaCode, javaCode, keyword, L, L, LForProxy, LForProxy, limitCalcExec, limitValidNumber
 
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, 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, deleteP, FForProxy, IForProxy, isIllusion, javaCode, JForProxy, 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

Exec.FuelNoPrev

public Exec.FuelNoPrev()
Method Detail

limitFuel

public boolean limitFuel()
true

Overrides:
limitFuel in class Exec

setsPrevExec

public boolean setsPrevExec()
false

Overrides:
setsPrevExec in class Exec

D

public double D()
Description copied from class: CS
Execute this CS and cast to double. All subclasses should override DForProxy() instead of D().

Overrides:
D in class CS
See Also:
CS.L(java.lang.Class)