Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
rtsprofile.rts_profile.RtsProfile Class Reference

RtsProfile object. More...

Public Member Functions

def __init__ (self, xml_spec=None, yaml_spec=None)
 
def __str__ (self)
 
def abstract (self)
 
def abstract (self, abstract)
 
def activation (self)
 
def activation (self, activation)
 
def comment (self)
 
def comment (self, comment)
 
def components (self)
 
def components (self, components)
 
def creation_date (self)
 
def creation_date (self, creation_date)
 
def data_port_connectors (self)
 
def data_port_connectors (self, data_port_connectors)
 
def deactivation (self)
 
def deactivation (self, deactivation)
 
def finalizing (self)
 
def finalizing (self, finalizing)
 
def find_comp_by_target (self, target)
 API functions. More...
 
def groups (self)
 
def groups (self, groups)
 
def id (self)
 Properties. More...
 
def id (self, id)
 
def initializing (self)
 
def initializing (self, initializing)
 
def optional_data_connections (self)
 
def optional_service_connections (self)
 
def parse_from_xml (self, xml_spec)
 XML. More...
 
def parse_from_yaml (self, yaml_spec)
 YAML. More...
 
def properties (self)
 
def properties (self, properties)
 
def required_data_connections (self)
 
def required_service_connections (self)
 
def resetting (self)
 
def resetting (self, resetting)
 
def save_to_xml (self)
 
def save_to_yaml (self)
 
def service_port_connectors (self)
 
def service_port_connectors (self, service_port_connectors)
 
def shutdown (self)
 
def shutdown (self, shutdown)
 
def startup (self)
 
def startup (self, startup)
 
def update_date (self)
 
def update_date (self, update_date)
 
def version (self)
 
def version (self, version)
 
def version_up_log (self)
 
def version_up_log (self, version_up_log)
 

Public Attributes

 abstract
 
 comment
 
 creation_date
 
 id
 
 update_date
 
 version
 

Private Member Functions

def _parse_xml (self, dom)
 Internal functions. More...
 
def _parse_yaml (self, spec)
 
def _reset (self)
 
def _to_dict (self)
 
def _to_xml_dom (self)
 
def _to_yaml (self)
 

Private Attributes

 _abstract
 
 _activation
 
 _comment
 
 _components
 
 _creation_date
 
 _data_port_connectors
 
 _deactivation
 
 _finalizing
 
 _groups
 
 _id
 
 _initializing
 
 _properties
 
 _resetting
 
 _service_port_connectors
 
 _shutdown
 
 _startup
 
 _update_date
 
 _version
 
 _version_up_log
 

Detailed Description

RtsProfile object.

Definition at line 50 of file rts_profile.py.

Constructor & Destructor Documentation

def rtsprofile.rts_profile.RtsProfile.__init__ (   self,
  xml_spec = None,
  yaml_spec = None 
)
Constructor.

Pass in an RTSProfile specification either in a string or a file
object, and the RtsProfile will be loaded from that.

If no specification is provided, the RtsProfile will be constructed
from the default values. Use the properties to set the values you need.

@param xml_spec A string or open file object containing the XML
specification of the RTS Profile. If present, the other arguments must
be None.

@param yaml_spec A string or open file object containing the YAML
specification of the RTS Profile. If present, the other arguments must
be None.

Definition at line 51 of file rts_profile.py.

Member Function Documentation

def rtsprofile.rts_profile.RtsProfile.__str__ (   self)

Definition at line 82 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile._parse_xml (   self,
  dom 
)
private

Internal functions.

Definition at line 513 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile._parse_yaml (   self,
  spec 
)
private

Definition at line 579 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile._reset (   self)
private

Definition at line 635 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile._to_dict (   self)
private

Definition at line 661 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile._to_xml_dom (   self)
private

Definition at line 726 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile._to_yaml (   self)
private

Definition at line 808 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.abstract (   self)
Description of this RT system.

May be empty.

Definition at line 149 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.abstract (   self,
  abstract 
)

Definition at line 158 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.activation (   self)
Ordering and conditions for when the RT system is activated.

Definition at line 291 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.activation (   self,
  activation 
)

Definition at line 296 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.comment (   self)
Comment about the system.

A brief comment about the system. May or may not be displayed in other
tools. May be empty.

Part of the extended profile.

Definition at line 346 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.comment (   self,
  comment 
)

Definition at line 358 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.components (   self)
Information about the components that make up the RT system.

May be an empty list if there are no components. Members are of type
@ref Component.

Definition at line 205 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.components (   self,
  components 
)

Definition at line 215 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.creation_date (   self)
The date this RT system was first created.

Usually set automatically by the tool that created the system.

Definition at line 164 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.creation_date (   self,
  creation_date 
)

Definition at line 173 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.data_port_connectors (   self)
Connections between data ports in the RT system.

Members are of type @ref DataPortConnector.

Definition at line 237 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.data_port_connectors (   self,
  data_port_connectors 
)

Definition at line 246 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.deactivation (   self)
Ordering and conditions for when the RT system is deactivated.

Definition at line 302 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.deactivation (   self,
  deactivation 
)

Definition at line 307 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.finalizing (   self)
Ordering and conditions for when the RT system is finalised.

Definition at line 335 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.finalizing (   self,
  finalizing 
)

Definition at line 340 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.find_comp_by_target (   self,
  target 
)

API functions.

Finds a component using a TargetComponent or one of its subclasses.

@param A @ref TargetComponent object or subclass of @ref
TargetComponent.
@return A Component object matching the target.
@raises MissingComponentError

Definition at line 401 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.groups (   self)
Information about the component groups in the RT system.

May be an empty list if there are no groups. Members are of type @ref
ComponentGroup.

Definition at line 221 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.groups (   self,
  groups 
)

Definition at line 231 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.id (   self)

Properties.

ID used to distinguish the RT system.

Typically in the format '[vendor name].[system name].[version]'.

Definition at line 133 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.id (   self,
  id 
)

Definition at line 142 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.initializing (   self)
Ordering and conditions for when the RT system is initialised.

Definition at line 324 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.initializing (   self,
  initializing 
)

Definition at line 329 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.optional_data_connections (   self)
Finds all data connections in which one or more components are not
required.

If all the components involved in a connection are required, that
connection is also required. If one or more are not required, that
connection is optional.

Definition at line 416 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.optional_service_connections (   self)
Finds all service connections in which one or more components are
not required.

If all the components involved in a connection are required, that
connection is also required. If one or more are not required, that
connection is optional.

Definition at line 433 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.parse_from_xml (   self,
  xml_spec 
)

XML.

Parse a string or file containing an XML specification.

Definition at line 485 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.parse_from_yaml (   self,
  yaml_spec 
)

YAML.

Parse a string or file containing a YAML specification.

Definition at line 502 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.properties (   self)
Miscellaneous properties.

Stores key/value pair properties.

Part of the extended profile.

Definition at line 382 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.properties (   self,
  properties 
)

Definition at line 393 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.required_data_connections (   self)
Finds all data connections in which all components are required.

If all the components involved in a connection are required, that
connection is also required. If one or more are not required, that
connection is optional.

Definition at line 450 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.required_service_connections (   self)
Finds all service connections in which all components are required.

If all the components involved in a connection are required, that
connection is also required. If one or more are not required, that
connection is optional.

Definition at line 466 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.resetting (   self)
Ordering and conditions for when the RT system is reset.

Definition at line 313 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.resetting (   self,
  resetting 
)

Definition at line 318 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.save_to_xml (   self)
Save this RtsProfile into an XML-formatted string.

Definition at line 494 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.save_to_yaml (   self)
Save this RtsProfile into a YAML-formatted string.

Definition at line 506 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.service_port_connectors (   self)
Connections between service ports in the RT system.

Members are of type @ref ServicePortConnector.

Definition at line 253 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.service_port_connectors (   self,
  service_port_connectors 
)

Definition at line 262 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.shutdown (   self)
Ordering and conditions for when the RT system is shut down.

Definition at line 280 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.shutdown (   self,
  shutdown 
)

Definition at line 285 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.startup (   self)
Ordering and conditions for when the RT system is started.

Definition at line 269 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.startup (   self,
  startup 
)

Definition at line 274 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.update_date (   self)
The date this RT system was most recently updated.

Usually set automatically by the tool that created the system.

Definition at line 179 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.update_date (   self,
  update_date 
)

Definition at line 188 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.version (   self)
Version of the RTSProfile specification this is in.

Definition at line 194 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.version (   self,
  version 
)

Definition at line 199 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.version_up_log (   self)
Log entries for new versions.

When an update to a system is made, the log entry describing changes is
stored in this value.

Part of the extended profile.

Definition at line 364 of file rts_profile.py.

def rtsprofile.rts_profile.RtsProfile.version_up_log (   self,
  version_up_log 
)

Definition at line 376 of file rts_profile.py.

Member Data Documentation

rtsprofile.rts_profile.RtsProfile._abstract
private

Definition at line 161 of file rts_profile.py.

rtsprofile.rts_profile.RtsProfile._activation
private

Definition at line 299 of file rts_profile.py.

rtsprofile.rts_profile.RtsProfile._comment
private

Definition at line 361 of file rts_profile.py.

rtsprofile.rts_profile.RtsProfile._components
private

Definition at line 218 of file rts_profile.py.

rtsprofile.rts_profile.RtsProfile._creation_date
private

Definition at line 176 of file rts_profile.py.

rtsprofile.rts_profile.RtsProfile._data_port_connectors
private

Definition at line 250 of file rts_profile.py.

rtsprofile.rts_profile.RtsProfile._deactivation
private

Definition at line 310 of file rts_profile.py.

rtsprofile.rts_profile.RtsProfile._finalizing
private

Definition at line 343 of file rts_profile.py.

rtsprofile.rts_profile.RtsProfile._groups
private

Definition at line 234 of file rts_profile.py.

rtsprofile.rts_profile.RtsProfile._id
private

Definition at line 146 of file rts_profile.py.

rtsprofile.rts_profile.RtsProfile._initializing
private

Definition at line 332 of file rts_profile.py.

rtsprofile.rts_profile.RtsProfile._properties
private

Definition at line 396 of file rts_profile.py.

rtsprofile.rts_profile.RtsProfile._resetting
private

Definition at line 321 of file rts_profile.py.

rtsprofile.rts_profile.RtsProfile._service_port_connectors
private

Definition at line 266 of file rts_profile.py.

rtsprofile.rts_profile.RtsProfile._shutdown
private

Definition at line 288 of file rts_profile.py.

rtsprofile.rts_profile.RtsProfile._startup
private

Definition at line 277 of file rts_profile.py.

rtsprofile.rts_profile.RtsProfile._update_date
private

Definition at line 191 of file rts_profile.py.

rtsprofile.rts_profile.RtsProfile._version
private

Definition at line 202 of file rts_profile.py.

rtsprofile.rts_profile.RtsProfile._version_up_log
private

Definition at line 379 of file rts_profile.py.

rtsprofile.rts_profile.RtsProfile.abstract

Definition at line 518 of file rts_profile.py.

rtsprofile.rts_profile.RtsProfile.comment

Definition at line 522 of file rts_profile.py.

rtsprofile.rts_profile.RtsProfile.creation_date

Definition at line 519 of file rts_profile.py.

rtsprofile.rts_profile.RtsProfile.id

Definition at line 517 of file rts_profile.py.

rtsprofile.rts_profile.RtsProfile.update_date

Definition at line 520 of file rts_profile.py.

rtsprofile.rts_profile.RtsProfile.version

Definition at line 521 of file rts_profile.py.


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


rtsprofile
Author(s): Geoffrey Biggs
autogenerated on Fri Jun 7 2019 21:52:35