view intentmademanifest/api.py @ 19:74ada5cb1cb8 default tip

more tools
author Jeff Hammel <k0scist@gmail.com>
date Fri, 04 Dec 2015 12:55:31 -0800
parents b8be785f8e87
children
line wrap: on
line source

"""
API
"""
# TODO: probably to workflow.py, state.py, transition.py

"""
Example usage [STUB]:

class MyWorkflow(Workflow):
    def __init__(self, **kwargs):
        Workflow.__init__(self, **kwargs)
"""

class Workflow(object):
    """DG of all workflow"""

    def __init__(self, initial_state=None):
        """
        - initial_state: if settable
        """

    def state(self):
        """
        current state;
        returns the current state object
        """

class State(object):
    """a state"""

    def __init__(self, *transitions):

    def available():
        """avalable transitions"""

    def transit():
        """invoke a transition"""