A Controller is a one-way channel for information to travel from outside a model/view/controller system into the system. It is intended to send notifications into the system of events outside the system. A controller is not allowed to display anything about the system to which it belongs -- that is the responsibility of a View .
- Refinement Of:
- Associated Types:
- The only type associated with the controller is the data structure that view is intended to represent. This is the value_type of the controller, and is used when setting the view to a new value of that type. In order to set a value within a model, a notification callback must be bound to the controller from the model.
The value type for the data for which the controller is sending notifications
A type that is a model of View
Object of type
- Valid Expressions:
Name Expression Type requirements Return type Monitor
See monitor for requirements on
- Expression Semantics:
Name Expression Precondition Semantics Postcondition
- Complexity Guarantees:
- Type(s) Modeling this Concept:
- Any device that sends information from outside a system into the system itself. An example might be an audio microphone or a checkbox when it is selected (however, its visual updating is a View property, not part of its functionality as a controller).
-  It is legal for any one implementation to model both a Controller and a View at the same time.
- See Also: