Open joeseibel opened 6 years ago
down to building a model and visitor now
I noticed that the example project resourcebudgets.aadl
has nested components with power budgets. The original analysis (as written by Peter) doesn't check this information. I'm assuming the new version doesn't either. I don't know if we want to expand the analysis to deal with this or not.
The question here and I think we need @lwrage to chime in is whether this analysis should stick to what the original implementation does, which is to only check the power across a power transmission system, or whether to extend it to check the requirements hierarchically.
Honestly, if we just want to stick with the original functionality, we don't even need an analysis model.
If we want to check hierarchically a model would definitely be helpful. There are 3 ways to nest (potentially):
Questions
I don't think it's necessary to update the analysis itself. There are many things that could potentially be improved, but we would need to consult an electrical engineer to know what makes sense.
So per @lwrage keep the existing functionality and don't try to improve anything. The power analysis model is flawed any how as it doesn't take into account different voltages, etc. This is meant as a proof-of-concept analysis to show that something can be done with power. But no one every followed up on it.
As I mention above, this is actually simple enough that it doesn't require an analysis model, but I think we should use one any way for the learning experience (both for Anna and to just generally expand are experience with trying to use them).
Model for the power analysis should consist of a set of Power Transmission Systems. Each power transmission system is connected to 0 or more Power Suppliers and 0 or more Power Consumers. Transmission systems, suppliers, and consumers are identified by property associations as described in the help text.
A Power Transmission System should have an attribute referring to the ComponentInstance.
A Power Consumer should have an attribute referring to the FeatureInstance.
A Power Supplier should have an attribute referring to the FeatureInstance.
Merged branch 2555_bus_load_analysis_ECORE_adapters
into 1383_use_AnalysisResult_in_power_requirements_analysis
Lookup a non-modal numeric SEI PowerCapacity property value scaled to the given unit (from platform:/plugin/org.osate.contribution.sei/resources/properties/SEI.aadl). Units used: KW, mW and W
Collect budget and supply information
If power supply > 0
Get destination connection instances for this feature // incoming connections: does the other end provide power? If supply > 0, add text to report (for example) : 40.0 W from EPSU
Same for outgoing connections - if budget > 0, add text to report // outgoing connection. Does the other end have a power budget?
After you checked all features, // power supply and budget based on access connections to this bus // we are checking whether there are connections with the component with power capacity as source or destination // this could be a bus, possibly an abstract component
— same logic for in/out connections again ( // Outgoing / Incoming from Power system as bus) Record budget and supply
Building report Check if budget exceeds capacity Check if budget exceeds supply (available)
Write out to Excel file