Did I find the right examples for you? yes no

All Samples(11)  |  Call(0)  |  Derive(11)  |  Import(0)
Several Troy classes benefit from somewhat richer than default python
properties -- in particular, we want to get notification callbacks on state
changes (and similar), and want to be able to refresh properties on the fly,
i.e. when they are needed.


Notifications:
--------------

Assume we want to allow users to register callback for a task's state(more...)

src/t/r/troy-0.0.3/troy/workload/compute_unit.py   troy(Download)
class ComputeUnit (tu.Properties, tu.Timed) :
    """
    The `ComputeUnit` class represents the smallest element of work to be
    performed on behalf of an application, and is part of a workload managed by
    Troy.  More specifically, `Task`s are decomposed into `ComputeUnit`s

src/t/r/troy-0.0.3/troy/overlay/pilot.py   troy(Download)
class Pilot (tu.Properties, tu.Timed) :
    """
    """
 
    _instance_cache = tu.InstanceCache ()

src/t/r/troy-0.0.3/troy/workload/workload.py   troy(Download)
class Workload (tu.Properties, tu.Timed) :
    """
    The `Workload` class represents a workload which is managed by Troy.  It
    contains a set of :class:`Tasks`, and a set of :class:`Relation`s between
    those tasks.

src/t/r/troy-0.0.3/troy/workload/task.py   troy(Download)
class Task (tu.Properties, tu.Timed) :
    """
    The `Task` class represents a element of work to be performed on behalf of
    an application, and is part of a workload managed by Troy.
 

src/t/r/troy-0.0.3/troy/overlay/overlay.py   troy(Download)
class Overlay (tu.Properties, tu.Timed) :
    """
    The `Overlay` class represents a resource overlay which is managed by Troy,
    i.e. in application and user space.  It contains a set of :class:`Pilots`, 
    which represent the resource capabilities of the overlay.

src/t/r/troy-0.0.3/troy/workload/task_description.py   troy(Download)
class TaskDescription (tu.Properties) :
    """
    The `TaskDescription` class is a simple container for properties which
    describe a :class:`Task`, i.e. a workload element.  `TaskDescription`s are
    submitted to :class:`WorkloadManager` instances on `add_task`, and are

src/t/r/troy-0.0.3/troy/workload/relation_description.py   troy(Download)
class RelationDescription (tu.Properties) :
    """
    The `RelationDescription` class is a simple container for properties which
    describe a :class:`Relation`, i.e. a workload element.  `RelationDescription`s are
    submitted to :class:`WorkloadManager` instances on `add_relation`, and are

src/t/r/troy-0.0.3/troy/workload/relation.py   troy(Download)
class Relation (tu.Properties) :
    """
    The `Relation` class represents a logical, temporal or spacial dependency
    between two :class:`Task`s, and is part of a workload managed by Troy.
 

src/t/r/troy-0.0.3/troy/workload/compute_unit_description.py   troy(Download)
class ComputeUnitDescription (tu.Properties) :
    """
    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`

src/t/r/troy-0.0.3/troy/overlay/pilot_description.py   troy(Download)
class PilotDescription (tu.Properties) :
    """
    The `PilotDescription` class is a simple container for properties which
    describe a :class:`Pilot`, i.e. a overlay element.  `PilotDescription`s are
    submitted to :class:`OverlayManager` instances on `add_pilot`, and are

  1 | 2  Next