Class Occupants

  • All Implemented Interfaces:
    java.lang.Cloneable, Actor, Executable, FiringsRecordable, Initializable, TypedActor, Changeable, Debuggable, DebugListener, Derivable, Instantiable, ModelErrorHandler, MoMLExportable, Moveable, Nameable

    public class Occupants
    extends ArrayOfRecordsRecorder
    A Occupants display actor. This actor specializes its superclass for use with a space database. It provides a customized editor that supports modifying the space database in the following ways:
    • Edit an occupant to change the notes, occupancy date, departure date, or sponsor. This keeps the identity of the occupant the same.
    • Add an occupant to a space, pulling occupant information from an associated people table. If the space is already occupied, you are given the option of replacing the current occupant or sharing the space with the current occupant.
    • Add an occupant to a space who is not in the associated people table.
    • Remove an occupant from a space.
    • Add a space.
    • Remove a space.
    • Move an occupant to a new space, and either replace or share with any current occupant of the destination space.
    FIXME: When adding or editing a person, method _editPersonQuery, we should use Java code to tolerate more formats for the date, or better yet to bring up a calendar!
    Since:
    Ptolemy II 8.0
    Version:
    $Id$
    Author:
    Edward A. Lee
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (eal)
    • Field Detail

      • databaseManager

        public StringParameter databaseManager
        Name of the DatabaseManager to use. This defaults to "DatabaseManager".
      • table

        public StringParameter table
        Table to use within the database. This is a string that defaults to "v_spaces".