mpacts.core. propertybase

In order to be able to use this module import it like this:

import mpacts.core.propertybase
#or assign it to a shorter name
import mpacts.core.propertybase as pro

PropertyBase

class mpacts.core.propertybase.PropertyBase

Bases: mpacts.core.baseobject.BaseObject

Base class of all properties (cannot be instantiated from python).

Raises an exception This class cannot be instantiated from Python

PropertyBase(name, parent, **kwargs)
documentation((PropertyBase)arg1) → str :

Returns the documentation of this property.

get_unit((PropertyBase)arg1) → Unit :

get unit of this property

is_optional((PropertyBase)arg1) → bool :

Returns whether or not the property is optional.

is_required((PropertyBase)arg1) → bool :

Returns whether or not the property is required.

set_unit((PropertyBase)arg1, (Unit)arg2) → None :

get unit of this property