forked from capocchi/DEVSimPy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutmodel.py
More file actions
27 lines (19 loc) · 696 Bytes
/
Copy pathoutmodel.py
File metadata and controls
27 lines (19 loc) · 696 Bytes
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
import sys
import os
import builtins
import DEVS.AtomicDEVS
import DEVS.CoupledDEVS
p = os.path.join('..','DEVSKernel','PyDEVS')
if p not in sys.path:
sys.path.append(p)
p = os.path.join('..')
if p not in sys.path:
sys.path.append(p)
builtins.__dict__['DEFAULT_DEVS_DIRNAME'] = 'PyDEVS'
builtins.__dict__['DEVS_DIR_PATH_DICT'] = {'PyDEVS':os.path.join(os.pardir,'DEVSKernel','PyDEVS'),'PyPDEVS':os.path.join(os.pardir,'DEVSKernel','PyPDEVS')}
class Diagram0(CoupledDEVS):
def __init__ (self, name):
CoupledDEVS.__init__(self, name)
################### Model Hierarchy #####################
# Model_Diagram0
#########################################################