8.76. File tom/Unit

class tom.Unit

inherits

State supers: State

variables

static MutableDictionary units;

All units known.

methods


instance (id)
  named String name;

Return the Unit with the name, or nil if said unit does not currently exist.


protected void
  fillUnits
pre
  !units;

Create the units dictionary and fill it with the currently known units.


Mapped
  units;

Return the collection of units, keyed on their name.

instance tom.Unit

variables

public String name;

The name of this unit.

Dictionary classes;

The classes in this unit, keyed on their unqualified name.

methods


protected id (self)
  initWithName String n
       classes Dictionary c;

Designated initializer.


class (State)
  classNamed String name;

Return the class with the given unqualified name, or nil if a class with that name does not exist in this unit.