MVC-class {MVCClass} | R Documentation |
Class "MVC": A class to represent a model-view-controller object
Description
MVC is a class to represent a model-view-controller object. The MVC class
will combine these three components (model, view and controller) so that
the MVC objects can be reused and linked.
Objects from the Class
Objects can be created by calls of the form new("MVC", ...)
.
Slots
model
:- the model object (will inherit from the gModel
virtual class)
viewList
:- a list of the view objects that visualize the
model
controller
:- the environment that stores information for the
MVC object
parentMVC
:- the name of the parent model (MVC) if there is a
parent model
childMVCList
:- a list of the names of the child models
(MVCs); it may be an empty list if there are no children
Methods
- childMVCList<-
- Sets the
childMVCList
slot
- childMVCList
- Returns the
childMVCList
slot
- controller<-
- Sets the
controller
slot
- controller
- Returns the
controller
slot
- model<-
- Sets the
model
slot
- model
- Returns the
model
slot
- parentMVC<-
- Sets the
parentMVC
slot
- parentMVC
- Returns the
parentMVC
slot
- viewList<-
- Sets the
viewList
slot
- viewList
- Returns the
viewList
slot
Author(s)
Elizabeth Whalen
See Also
gModel-class
,
genView-class
Examples
[Package
MVCClass version 1.6.0
Index]