SDS2 Parametric API
 All Classes Namespaces Functions Variables Pages
List of all members
dialog.value.Value Class Reference

A Value exists for every name on every ModelRoot. More...

Inheritance diagram for dialog.value.Value:
dialog.value.ValueImpl

Methods defined here:

def __init__
def add_field

Methods inherited from ValueImpl:

def AddAffect
def AddRule
def Changed
def Get
def MarkInvalid
def Set
def SetValid
def __call_on_fields__
def __get_mixed__
def __get_name__
def __get_rules__
def __get_screenonly__
def __get_valid__
def __getaffected__
def __getkind__
def __getreadonly__
def __set_mixed__
def __set_screenonly__
def __setaffected__
def __setreadonly__
def __setshowaffects__
def model_set
def remove_field

Data descriptors inherited from ValueImpl:

def __dict__
 dictionary for instance variables (if defined)
def __weakref__
 list of weak references to the object (if defined)
def affected
def kind
def mixed
def name
def read_only
def rules
def screen_only
def show_affects
def valid
def value

Additional Inherited Members

- Public Member Functions inherited from dialog.value.ValueImpl

Detailed Description

A Value exists for every name on every ModelRoot.

Since there can be multiple Field objects for one name, I'm introducing this Value object. It gives a central place for things to happen and for all Fields to be properly updated.

It also provides some separation between dealing with the data and dealing with the visual representation of the data. The Value class is concerned with mapping Field events to update the ModelDisplay, and making sure that all Fields receive changes. The Field class can then worry about those events.

Method resolution order

Value
ValueImpl
builtin.object

Constructor & Destructor Documentation

def dialog.value.Value.__init__ (   args)
 __init__(args)

Reimplemented from dialog.value.ValueImpl.

Member Function Documentation

def dialog.value.Value.__call_on_fields__ (   args)
 __call_on_fields__(args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.__dict__ (   args)

dictionary for instance variables (if defined)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.__get_mixed__ (   args)
 __get_mixed__(args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.__get_name__ (   args)
 __get_name__(args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.__get_rules__ (   args)
 __get_rules__(args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.__get_screenonly__ (   args)
 __get_screenonly__(args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.__get_valid__ (   args)
 __get_valid__(args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.__getaffected__ (   args)
 __getaffected__(args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.__getkind__ (   args)
 __getkind__(args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.__getreadonly__ (   args)
 __getreadonly__(args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.__set_mixed__ (   args)
 __set_mixed__(args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.__set_screenonly__ (   args)
 __set_screenonly__(args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.__setaffected__ (   args)
 __setaffected__(args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.__setreadonly__ (   args)
 __setreadonly__(args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.__setshowaffects__ (   args)
 __setshowaffects__(args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.__weakref__ (   args)

list of weak references to the object (if defined)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.add_field (   args)
 add_field(args)
def dialog.value.Value.AddAffect (   args)
 AddAffect(args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.AddRule (   args)
 AddRule(args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.affected (   args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.Changed (   args)
 This is a method for child methods to call.
 It says that this value has probably changed and so it should be
 updated back to the display models.

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.Get (   args)
 Get(args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.kind (   args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.MarkInvalid (   args)
 This sets the Value to valid=False
 It also adds "reason" to the list of reasons if
 the reason is not None.
 Note: We can be valid=False, and have no reasons.

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.mixed (   args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.model_set (   args)
 model_set(args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.name (   args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.read_only (   args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.remove_field (   args)
 remove_field(args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.rules (   args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.screen_only (   args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.Set (   args)
 Set(args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.SetValid (   args)
 This sets the Value to valid=True.
 It also clears the list of reasons.

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.show_affects (   args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.valid (   args)

Reimplemented from dialog.value.ValueImpl.

def dialog.value.Value.value (   args)

Reimplemented from dialog.value.ValueImpl.