DCSimpleParameter

from acron.direct import DCSimpleParameter
class DCSimpleParameter

Bases:

Bases: DCParameter

This is the most fundamental kind of parameter type: a single number or string, one of the DCSubatomicType elements. It may also optionally have a divisor, which is meaningful only for the numeric type elements (and represents a fixed-point numeric convention).

Inheritance diagram

digraph inheritancefe4641186e { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DCField" [URL="acron.direct.DCField.html#acron.direct.DCField",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DCPackerInterface" -> "DCField" [arrowsize=0.75,style=""]; "DCKeywordList" -> "DCField" [arrowsize=0.75,style=""]; "DCKeywordList" [URL="acron.direct.DCKeywordList.html#acron.direct.DCKeywordList",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "DCKeywordList" [arrowsize=0.75,style=""]; "DCPackerInterface" [URL="acron.direct.DCPackerInterface.html#acron.direct.DCPackerInterface",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "DCPackerInterface" [arrowsize=0.75,style=""]; "DCParameter" [URL="acron.direct.DCParameter.html#acron.direct.DCParameter",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DCField" -> "DCParameter" [arrowsize=0.75,style=""]; "DCSimpleParameter" [URL="acron.direct.DCSimpleParameter.html#acron.direct.DCSimpleParameter",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DCParameter" -> "DCSimpleParameter" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; }
get_divisor()

Returns the divisor associated with this type. This is 1 by default, but if this is other than one it represents the scale to apply when packing and unpacking numeric values (to store fixed-point values in an integer field). It is only meaningful for numeric-type fields.

get_modulus()

Returns the modulus associated with this type, if any. It is an error to call this if has_modulus() returned false.

If present, this is the modulus that is used to constrain the numeric value of the field before it is packed (and range-checked).

get_type()

Returns the particular subatomic type represented by this instance.

has_modulus()

Returns true if there is a modulus associated, false otherwise.,