260 likes | 475 Views
Mine Pump Control. TSW November 2009 Anders P. Ravn Aalborg University. OOAD Development steps. Problem Domain Analysis Application Domain Analysis Architectural Design Timing Analysis Detailed Design Implementation Validation. Problem Domain Analysis: Rich Picture.
E N D
Mine Pump Control TSW November 2009 Anders P. Ravn Aalborg University
OOAD Development steps • Problem Domain Analysis • Application Domain Analysis • Architectural Design • Timing Analysis • Detailed Design • Implementation • Validation
Problem Domain Analysis:Class Diagram AirQuality Pump WaterFlow Sump CO CH_4 AirFlow OperatorConsole WaterHigh WaterLow
Problem Domain AnalysisBehaviours Pump (only non-trivial) off On Off off on on
Problem Domain Analysis:Plant Structure • Water Level: dw = C_w dt – C_p • Gas Level: If AirFlow then disappears after C_a time units • Water Flow: Must be on after C_f time units when (w > w_min) && (p == on)
«interface» IO getCO() : bool getCH_4() : short getAirFlow(): bool getWF() :bool getWHigh() :bool getWLow() :bool setPump(on: bool) send(Event) Application Domain Analysis:Interfaces • CH_4 > 10 is high • Events: • pumpStopped • pumpUnsafe • pumpStarted • pumpFault (alarm) • WFflow • CH_4high (alarm) • CH_4error (alarm) • NoAirFlow (alarm) • COhigh (alarm)
Application Domain Analysis:Functionality • Water Level is kept low unless CH_4 is to high (or pump stopped by operator). • Monitor gas levels and air flow. Report critical levels. • All critical events are sent to operator. • All system events are stored in a log.
Application Domain:Timing Requirements • Pump must be shut off at high methane level within 200 ms • Operator must be informed within 1-3 seconds of critical events
«component» Model «component» UserInterface «component» SubsystemInterface «component» OS «component» FileSystem «component» Function Design:Simple Generic Architecture «component» Interface «component» Platform ...
Function Component CH_4 Monitor AirFlow Controller WaterLevel Monitor WaterFlow Monitor Data Logger CO Monitor Pump Controller Operator Console
Model Component I Function Layer CH_4 Monitor WaterFlow Monitor Data Logger Pump Controller Operator Console WaterLevel Monitor Model Layer Log WL Command WF CH_4
Model Component II Function Layer CH_4 Monitor Data Logger CO Monitor AirFlow Monitor Model Layer Log CH_4 CO AF
Function Component CH_4 Monitor AirFlow Controller WaterLevel Monitor WaterFlow Monitor Data Logger CO Monitor Pump Controller Operator Console
Detailed Design - Implementation • Programming Components • Synchronized / Atomic R/W • Environment Simulator • IO Interfaces for actual platform • OS Interfaces for actual platform
Validation • Unit Test of Model Layer • Unit Test of IO Interfaces to Environment Simulator • Stepwise integration of Functions • Analysis/Measurement of C, D • Deployment on actual hardware • System Test