Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
The `ComputeUnitDescription` class is a simple container for properties
which describe a :class:`ComputeUnit`, i.e. a workload element.
`ComputeUnitDescription`s are submitted to :class:`WorkloadManager`
instances on `add_task`, and are internally used to create
:class:`ComputeUnit` instances.

FIXME: description of supported properties goes here

src/t/r/troy-0.0.3/troy/plugins/workload_translator/plugin_workload_translator_direct.py   troy(Download)
 
            # we simply and stupidly translate one task into one unit description
            cu_descr = troy.ComputeUnitDescription (task.as_dict ())
            cu_id    = task._add_unit (cu_descr)
            troy._logger.info ('workload translate: derive unit %-18s for %s' % (cu_id, task.id))

src/t/r/troy-0.0.3/troy/plugins/workload_transformer/plugin_workload_transformer_synapse.py   troy(Download)
 
            # we simply and stupidly translate one task into one unit description
            cu_descr = troy.ComputeUnitDescription (task.description.as_dict ())
 
            # this translator adds a TTC estimate -- for now, it assumes

src/t/r/troy-0.0.3/troy/workload/compute_unit.py   troy(Download)
            native_id  = _native_id
            self.id    = None
            descr      = troy.ComputeUnitDescription ()
            reconnect  = True
 
        elif isinstance (param, basestring) :
            _native_id = None
            self.id    = param
            descr      = troy.ComputeUnitDescription ()