8.20. File tom/ConditionClass

class tom.ConditionClass

Instances of the ConditionClass define the hierarchy of conditions as carried by Condition instances. Conditions classes could be real tom classes, but the features provided by said mechanism are too baroque for this purpose---only the inheritance is needed.

The tom condition class hierarchy does not employ multiple inheritance.

TOM conditions are evidently modelled after CL.

inherits

State supers: State

methods


instance (id)
  with instance (id) super_condition
  name ByteString name;

Undocumented.

instance tom.ConditionClass

variables

id super_condition;

Our super condition class. The super condition class of the top condition is nil.

public ByteString name;

Our descriptive name.

methods


protected id
  init id sc
  name ByteString nm;

Undocumented.


boolean
  isConditionSuper id other;

Return YES iff other is a super condition class of the receiving condition class.