DataContent

class DataContent(dataContent)[source]

Bases: object

A class for the DataContent enumeration.

Attributes Summary

ACTUAL_DURATIONS

ACTUAL_TIMES

AUTO_DATA

CROSS_DATA

FLAGS

WEIGHTS

ZERO_LAGS

Methods Summary

from_int(i)

Return a DataContent from an integration matching an enumeration.

getName()

Return the name of this enumeration.

getValue()

Return the integer value of this enumeration.

literal(name)

Return the DataContent enumerator value given a string

name(dataContent)

Returns the string form of dataContent

names()

Return the list of all known DataContent enumeration names

newDataContent(name)

Equivalent to the literal method

revision()

revision as a string.

size()

the number of known enumerators in DataContent

version()

the major version number as an int.

Attributes Documentation

ACTUAL_DURATIONS = <pyasdm.enumerations.DataContent.DataContent object>
ACTUAL_TIMES = <pyasdm.enumerations.DataContent.DataContent object>
AUTO_DATA = <pyasdm.enumerations.DataContent.DataContent object>
CROSS_DATA = <pyasdm.enumerations.DataContent.DataContent object>
FLAGS = <pyasdm.enumerations.DataContent.DataContent object>
WEIGHTS = <pyasdm.enumerations.DataContent.DataContent object>
ZERO_LAGS = <pyasdm.enumerations.DataContent.DataContent object>

Methods Documentation

static from_int(i)[source]

Return a DataContent from an integration matching an enumeration.

getName()[source]

Return the name of this enumeration.

getValue()[source]

Return the integer value of this enumeration.

static literal(name)[source]

Return the DataContent enumerator value given a string

static name(dataContent)[source]

Returns the string form of dataContent

static names()[source]

Return the list of all known DataContent enumeration names

static newDataContent(name)[source]

Equivalent to the literal method

static revision()[source]

revision as a string.

static size()[source]

the number of known enumerators in DataContent

static version()[source]

the major version number as an int.