pyCAPS
pyCAPS: A Python Extension Module for CAPS
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
_capsValue Class Reference

Functions to interact with a CAPS value object. More...

Public Member Functions

def setVal (self, data)
 Change the value of the object. More...
 
def getVal (self)
 Get the current value of object. More...
 
def setLimits (self, newLimits)
 Set new limits. More...
 
def getLimits (self)
 Get the current value for the limits. More...
 
def convertUnits (self, toUnits)
 Return the current value of the object in the desired, specified units. More...
 

Public Attributes

 capsProblem
 Reference to the problem object that loaded the value. More...
 
 units
 Units of the variable.
 
 limits
 Acceptable limits for the value. More...
 
 value
 Value of the variable. More...
 

Static Public Attributes

 name
 Variable name.
 

Detailed Description

Functions to interact with a CAPS value object.

Should be created with capsProblem.createValue (not a standalone class)

Member Function Documentation

◆ convertUnits()

def convertUnits (   self,
  toUnits 
)

Return the current value of the object in the desired, specified units.

Note that this neither changes the value or units of the object, only returns a converted value. See value4.py for a representative use case.

Returns
Current value of the object in the specified units.

◆ getLimits()

def getLimits (   self)

Get the current value for the limits.

See value3.py for a representative use case.

Returns
Current value for the limits.

◆ getVal()

def getVal (   self)

Get the current value of object.

See value2.py for a representative use case.

Returns
Current value of set for object.

◆ setLimits()

def setLimits (   self,
  newLimits 
)

Set new limits.

See value3.py for a representative use case.

Parameters
newLimitsNew values to set for the limits. Should be 2 element list - [min value, max value].

◆ setVal()

def setVal (   self,
  data 
)

Change the value of the object.

See value2.py for a representative use case.

Parameters
dataData value(s) for the variable. Note that data will be type casted to match the type used to original create the capsValue object.

Member Data Documentation

◆ capsProblem

Reference to the problem object that loaded the value.

◆ limits

limits

Acceptable limits for the value.

Limits may be set directly. See value3.py for a representative use case.

◆ value

value

Value of the variable.

Value may be set directly. See value2.py for a representative use case.


The documentation for this class was generated from the following file: