gAddMessage-class {iSPlot}R Documentation

Class "gAddMessage": A class to represent an add message

Description

gAddMessage is a class to represent an add message. When one of the components in the model-view-controller paradigm needs to tell another component to be added, an add message is created. For example, when the controller adds data to the data environment, a gAddDataMessage object is created. Both gAddDataMessage and gAddViewMessage classes are inherited from gAddMessage. Although gAddMessage is not a virtual class, currently no objects of class gAddMessage are created in package, iSPlot.

Objects from the Class

Objects can be created by calls of the form new("gAddMessage", ...).

Slots

dataName:
the name of the data to be added or the name of the data that the view depends on
mData:
the data needed to perform the add, will be a list

Extends

Class "gMessage", directly.

Methods

dataName
Returns the dataName slot
dataName<-
Sets the dataName slot
mData
Returns the mData slot
mData<-
Sets the mData slot

Author(s)

Elizabeth Whalen

See Also

gMessage-class, gAddViewMessage-class, gAddDataMessage-class

Examples

  if (interactive())
  {
    createControlWindow()
    # should load data through Open Data or Open File under the File menu
    data("USArrests")
    dMessage<-new("gAddDataMessage", data="USArrests")
    handleMessage(dMessage)
   
    # check to make sure it has been loaded in dataEnv
    names(get("dfList", dataEnv))
    # check if it inherits from gAddMessage
    is(dMessage,"gAddMessage")
  }

[Package iSPlot version 1.0.3 Index]