engine
Class IfInstruction

java.lang.Object
  |
  +--engine.Instruction
        |
        +--engine.DefaultInstruction
              |
              +--engine.IfInstruction

class IfInstruction
extends DefaultInstruction

See Also:
Serialized Form

Field Summary
(package private)  Expression cond
           
(package private)  DefaultInstruction iFalse
           
(package private)  DefaultInstruction iTrue
           
 
Fields inherited from class engine.DefaultInstruction
delayBefore, desc, ns, state
 
Fields inherited from class engine.Instruction
next
 
Constructor Summary
(package private) IfInstruction(NameSpace ns, int db, InstructionDescription desc, Expression e, DefaultInstruction iT, DefaultInstruction iF, DefaultInstruction next)
           
 
Method Summary
 void execute()
           
 Instruction next()
           
 
Methods inherited from class engine.DefaultInstruction
checkIfIsAllowedInFunction, toString, waitToRun
 
Methods inherited from class engine.Instruction
add, append
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

cond

Expression cond

iTrue

DefaultInstruction iTrue

iFalse

DefaultInstruction iFalse
Constructor Detail

IfInstruction

IfInstruction(NameSpace ns,
              int db,
              InstructionDescription desc,
              Expression e,
              DefaultInstruction iT,
              DefaultInstruction iF,
              DefaultInstruction next)
Method Detail

next

public Instruction next()
Overrides:
next in class Instruction

execute

public void execute()
             throws InterpretTimeException,
                    SimulationStoppedException