8.19. File tom/Condition

class tom.Condition

inherits

State supers: State

methods


instance (id)
      for All object
    class ConditionClass condition_class
  message String msg;

Return a new Condition for the indicated circumstances.

instance tom.Condition

variables

public ConditionClass condition_class;

The condition class of the condition indicated by this Condition.

public Any object;

The object by/for which this condition was raised.

public String message;

The message explaing what actually happened.

public boolean raised;

Iff TRUE, this condition was raised, otherwise it was signaled.

methods


protected id
  initFor All o
    class ConditionClass cc
  message String msg;

Undocumented.


void
  raise;

Raise this condition; guaranteed never to return.


Any
  signal;

Signal this condition. If a handler performs a non-local break, this method does not return. If no handler is installed, nil is returned. If a handler returns something different from this condition, signaling is terminated and that value is returned.


OutputStream (s)
  writeFields OutputStream s;

Undocumented.

class tom.SelectorCondition

inherits

State supers: Condition

methods


instance (id)
       for All object
     class ConditionClass condition_class
   message String msg
  selector selector sel;

Return a new SelectorCondition for the indicated circumstances.

instance tom.SelectorCondition

variables

selector sel;

The selector which was sent to the object.

methods


protected id
   initFor All o
     class ConditionClass cc
   message String msg
  selector selector s;

Undocumented.


selector
  selector;

Return the selector, sel.


OutputStream (s)
  writeFields OutputStream s;

Undocumented.