Did I find the right examples for you? yes no

All Samples(118)  |  Call(113)  |  Derive(0)  |  Import(5)
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.

Overlay instances are owned by the :class:`OverlayManager` class -- only
that class should change its composition and state (but Overlay may get
created by the :class:`troy.Planner`).

An overlay undergoes a series of transformations before being able to run
workloads.  Those transformations are orchestrated by the overlay manager.(more...)

src/s/h/shaape-HEAD/shaape/overlayparser.py   shaape(Download)
from node import *
from edge import Edge
from overlay import Overlay
from graphalgorithms import planar_cycles
 
    def __init__(self):
        super(OverlayParser, self).__init__()
        self.__sub_overlays = []
        self.__sub_overlays.append(Overlay([['\.']], [Node(0.5, 0.5)], options = ['dotted']))
        self.__sub_overlays.append(Overlay([['\.', '[^\.]'],['[^\.]', '\.']], [Edge(Node(0.5, 0.5, fusable = False), Node(1.5, 1.5, fusable = False))], options = ['dotted']))
        self.__sub_overlays.append(Overlay([['[^\.]', '\.'],['\.', '[^\.]']], [Edge(Node(1.5, 0.5, fusable = False), Node(0.5, 1.5, fusable = False))], options = ['dotted']))
        self.__sub_overlays.append(Overlay([['\.','\.']], [Edge(Node(0.5, 0.5, fusable = False), Node(1.5, 0.5, fusable = False))], options = ['dotted']))

src/s/h/shaape-1.0.0/shaape/overlayparser.py   shaape(Download)
from node import *
from edge import Edge
from overlay import Overlay
from graphalgorithms import planar_cycles
 
    def __init__(self):
        super(OverlayParser, self).__init__()
        self.__sub_overlays = []
        self.__sub_overlays.append(Overlay([['\+']], [Node(0.5, 0.5)]))
        self.__sub_overlays.append(Overlay([['-']], [Edge(Node(0, 0.5), Node(1, 0.5))]))
        self.__sub_overlays.append(Overlay([['\|']], [Edge(Node(0.5, 0), Node(0.5, 1))]))
        self.__sub_overlays.append(Overlay([['/']], [Edge(Node(0, 1), Node(1, 0))]))

src/t/r/troy-0.0.3/troy/__init__.py   troy(Download)
from overlay    import Pilot            # should be private
from overlay    import PilotDescription # should be private
from overlay    import Overlay
from overlay    import OverlayDescription
from overlay    import OverlayManager

src/t/r/troy-0.0.3/troy/overlay/__init__.py   troy(Download)
from pilot               import Pilot
from pilot_description   import PilotDescription
from overlay             import Overlay
from overlay_description import OverlayDescription
from overlay_manager     import OverlayManager