Download Final Report - ORCA-USA
Transcript
3.2 CPSAnalysis 3.2.1 Description This helps to represent CPSAnalysis data which is used to draw graph and display overall return over costs with High, Low, Mean value (if expected variation entered) for multiple plans side-by-side. 3.2.2 Attributes Table 5.3.3 Attributes of CPSAnalysis Class Name Type Description planName string Plan Description expectedVariation string Expected variation applied to user’s estimate High double Highest profit user may have Mean double Average profit Low double Lowest profit user may have 3.2.3 Operation Specification of non getter/setter/constructor method Table 5.3.4 Operation specification of CPSAnalysis Class Method Name Description GetAnalysisData Signature Description public DataTable GetAnalysisData(Cost c, Income i, string planName) It takes Cost, Income and planName and it calculates as per the business rule and return CPSAnalysis datatable. Behavior Pre: Passed in data is valid Post: return datatable with CPSAnalysis data Post: if invalid data found, return null and give user “invalid data” message. Load Signature public bool Load(Cost c, Income i, string planName) Description It loads the CPSAnalysis object. Returns to true if all data passed in is valid and load successful. Otherwise return false. 53