This is a simple, standalone, proof-of-concept implementation of CostHat in the Python programming language.
Files:
costhat.py: contains the actual modelcosthat_tests.py: some simple smoke tests and examplesucc_casestudy.py: case study implementation, uses the application model specified inucc_casestudy_model.xmlucc_eval.py: evaluation script for scalability of cost evaluationnumerical_eval.csv: raw data resulting from the scalability evaluationgenerate_plots.py: helper to generate plots from this raw data using ggplot
Usage:
CostHat models can be constructed either via Python program code or in XML.
For examples that construct models in Python please refer to costhat_tests.py.
A somewhat large example of an XML-based definition is in ucc_casestudy_model.xml,
and ucc_casestudy.py shows how to instantiate an XML-based CostHat model in code.