File size: 663 Bytes
21baa2f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

'''
Created on ٠٢‏/٠٤‏/٢٠١٠

@Created by: Muhammad Altabba
'''
from .State import State

class Transition(object):
    """
     # PyUML: Do not remove this line! # XMI_ID:_qzIIGo35Ed-gg8GOK1TmhA
    """
    '''
    Store one Transition from state to state. It contains Conditions and Actions.
    '''
    
    Conditions = [];
    
    Actions = [];
    
    NextState = State();
    
    Consume = 0;

    def __init__(self, conditions, actions, nextState, consume):
        '''
        Constructor
        '''
        self.Conditions = conditions;
        self.Actions = actions;
        self.NextState = nextState;
        self.Consume = consume;