TaurusModel

Inheritance diagram of TaurusModel
class TaurusModel(full_name, parent, serializationMode=None)[source]

Bases: taurus.core.util.log.Logger

RegularEvent = (0, 1, 2)
addListener(listener)[source]
classmethod buildModelName(parent_model, relative_name)[source]
cleanUp()[source]
deleteListener(listener)[source]
classmethod factory()[source]
fireEvent(event_type, event_value, listeners=None)[source]

sends an event to all listeners or a specific one

forceListening()[source]
fullname
getChildObj(child_name)[source]
getDisplayDescrObj(cache=True)[source]

A brief description of the model. Can be used as tooltip, for example

getDisplayName(cache=True, complete=True)[source]
getFragmentObj(fragmentName=None)[source]

Returns a fragment object of the model. A fragment of a model is a python attribute of the model object.

Fragment names including dots will be used to recursively get fragments of fragments.

For a simple fragmentName (no dots), this is roughly equivalent to getattr(self, fragmentName)

If the model does not have the fragment, AttributeError is raised

Parameters:fragmentName (str or None) – the returned value will correspond to the given fragmentName. If None is passed the defaultFragmentName will be used instead.
Return type:obj
Returns:the member of the modelObj referred by the fragment.
getFullName()[source]
classmethod getNameValidator()[source]
getNormalName()[source]
getParentObj()[source]
getSerializationMode()[source]

Gives the serialization operation mode.

Return type:TaurusSerializationMode
Returns:the current serialization mode
getSimpleName()[source]
classmethod getTaurusElementType()[source]
hasListeners()[source]

returns True if anybody is listening to events from this attribute

classmethod isValid(*args, **kwargs)[source]
isWritable()[source]
name
parentObj
removeListener(listener)[source]
setSerializationMode(mode)[source]

Sets the serialization mode for the system.

Parameters:mode (TaurusSerializationMode) – the new serialization mode
unforceListening()[source]