Nasal CDU Framework: Difference between revisions

Jump to navigation Jump to search
Line 121: Line 121:


== CDU ==
== CDU ==
The CDU is the main class for the instrument. Each simulated CDU should have one and only one CDU instance associated to it. This is intended to support multiple CDUs showing different content in the future.


<code>
  var CDU = {
    # "STATIC"
    func M_ERROR(message_string),
    func M_WARNING(message_string),
    func M_NOTE(message_string),
    func M_HINT(message_string),
 
    func updateDisplay(),
    scalar activeBasePageID,
 
    (ScratchPad) scratchPad,
    (Timer) timer,
    (ListenerCollection) listOfListeners,
  };
</code>


= Additional Infrastructure =
= Additional Infrastructure =
155

edits

Navigation menu