engine
Class ForInstruction

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

class ForInstruction
extends DefaultInstruction

See Also:
Serialized Form

Field Summary
(package private)  DefaultInstruction body
           
(package private)  Expression cond
           
(package private)  DefaultInstruction initial
           
(package private)  DefaultInstruction update
           
 
Fields inherited from class engine.DefaultInstruction
delayBefore, desc, ns, state
 
Fields inherited from class engine.Instruction
next
 
Constructor Summary
(package private) ForInstruction(NameSpace ns, int db, InstructionDescription desc, DefaultInstruction initial, Expression cond, DefaultInstruction update, DefaultInstruction body, 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

body

DefaultInstruction body

update

DefaultInstruction update

initial

DefaultInstruction initial
Constructor Detail

ForInstruction

ForInstruction(NameSpace ns,
               int db,
               InstructionDescription desc,
               DefaultInstruction initial,
               Expression cond,
               DefaultInstruction update,
               DefaultInstruction body,
               DefaultInstruction next)
Method Detail

next

public Instruction next()
Overrides:
next in class Instruction

execute

public void execute()
             throws InterpretTimeException,
                    SimulationStoppedException