engine
Class Fork

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

class Fork
extends DefaultInstruction

a fork..join block instance

See Also:
Serialized Form

Field Summary
(package private)  boolean anyThreadStarted
           
(package private)  int count
           
(package private)  ControlThread ctrlTh
           
(package private)  DefaultInstruction first
           
 
Fields inherited from class engine.DefaultInstruction
delayBefore, desc, ns, state
 
Fields inherited from class engine.Instruction
next
 
Constructor Summary
Fork(NameSpace ns, int delayBefore, InstructionDescription desc, DefaultInstruction first, DefaultInstruction next)
           
 
Method Summary
 void execute()
           
(package private)  void wakeUp()
           
 
Methods inherited from class engine.DefaultInstruction
checkIfIsAllowedInFunction, toString, waitToRun
 
Methods inherited from class engine.Instruction
add, append, next
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

first

DefaultInstruction first

anyThreadStarted

volatile boolean anyThreadStarted

ctrlTh

ControlThread ctrlTh

count

volatile int count
Constructor Detail

Fork

public Fork(NameSpace ns,
            int delayBefore,
            InstructionDescription desc,
            DefaultInstruction first,
            DefaultInstruction next)
Method Detail

execute

public void execute()
             throws InterpretTimeException,
                    SimulationStoppedException

wakeUp

void wakeUp()