hiercDVVisitor.py 762 Bytes
Newer Older
1 2 3 4 5 6 7
#! /usr/bin/python

import ocarina
import taste
import lmp

def main ():
8 9 10 11 12
	mainAADLFile = '../projects/DemoDV.aadl'
	aadlFiles = [mainAADLFile, '../projects/TASTE_DV_Properties.aadl', '../projects/DemoIV.aadl', '../projects/TASTE-Dataview.aadl', \
		'../projects/TASTE_IV_Properties.aadl', '../projects/taste_properties.aadl', '../projects/data_model.aadl', \
		'../projects/base_types.aadl', '../projects/deployment.aadl', '../projects/Cheddar_Properties.aadl', \
		'../projects/arinc653.aadl', '../projects/TestLibHW.aadl']
13 14 15 16 17 18 19 20 21 22
	
	ret = taste.load (aadlFiles, "deploymentview::DV::deploymentview.others")
	print 'load', ret 
	
	dv = taste.getTasteRoot()
	taste.visitDV(dv)
	 
if __name__ == "__main__":
    main ()
    #~ sys.exit (0);                       # exit