orc.runtime
Class Group

java.lang.Object
  extended by orc.runtime.Group
Direct Known Subclasses:
GroupCell, IsolatedGroup

public class Group
extends java.lang.Object

Every token belongs to a group which decides whether that token is active or not. Groups form a tree structure. Groups can be forcibly killed. When a group is killed, all of its children are also killed immediately. The tokens, however, are killed lazily as they become active.

Author:
quark

Field Summary
protected  boolean alive
          Is this group currently alive?
 
Constructor Summary
Group()
           
 
Method Summary
 void add(Group child)
          Add a subgroup.
 boolean isAlive()
          Is this group currently alive?
 void kill()
          Forcibly terminate this group and all of its children.
 void onKill()
          Override this.
 void remove(Group child)
          Remove a subgroup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

alive

protected boolean alive
Is this group currently alive?

Constructor Detail

Group

public Group()
Method Detail

add

public final void add(Group child)
Add a subgroup.


remove

public final void remove(Group child)
Remove a subgroup.


kill

public final void kill()
Forcibly terminate this group and all of its children.


onKill

public void onKill()
Override this.


isAlive

public final boolean isAlive()
Is this group currently alive?