====== HeKatE Case Lift (Elevator) ====== This case analysis is based on [[hekate process]]. Eliasz Kańtoch, Tomasz Michalski ====== Introduction ====== It is a Lift (elevator) case. The main problem described here is to create a lift (elevator) control system in a building. ===== Description ===== The example shows basic lift functions: call up the lift, choosing target floor, indicating the direction, calculating where the lift has to go. ===== Conceptualization ===== ==== Vocabulary ==== Inputs: calling the lift from outside and inside, Outputs: choosing the direction and the target floor Internal stages: Current position and direction ==== Original Rules ==== Decision table → direction Decision table + current floor → stop or go ===== Analysis ===== ===== Conceptual design ===== Level 0: Elavator Level 1: Finalization Elavator to: CurrentElevatorDirection, LastElevatorDirection, IsHigherFloorSelectedFromCabin, IsLowerFloorSelectedFromCabin, IsThisFloorSelectedFromCabin, CallElevatorFromHigherFloorToGoUp, CallElevatorFromHigherFloorToGoDown, CallElevatorFromLowerFloorToGoUp, CallElevatorFromLowerFloorToGoDown, CallElevatorFromActualFloorToGoUp, CallElevatorFromActualFloorToGoDown, WhereToGo Level 2: Split: CurrentElevatorDirection → LastElevatorDirection → IsHigherFloorSelectedFromCabin → IsLowerFloorSelectedFromCabin → IsThisFloorSelectedFromCabin → CallElevatorFromHigherFloorToGoUp → CallElevatorFromHigherFloorToGoDown → CallElevatorFromLowerFloorToGoUp → CallElevatorFromLowerFloorToGoDown → CallElevatorFromActualFloorToGoUp → CallElevatorFromActualFloorToGoDown → WhereToGo, Level 3-13: Finalization of each attributes. ==== General Conceptual Design ==== ==== Directed Conceptual Design ==== We model the system aiming at matching the original rules. First, it is stated that there is a system to be designed which is described by a single conceptual attribute ''Elevator''. It is so called level 0 of the design. Refining knowledge about what is the purpose of the system makes a transition to the diagram at level 1; it is a finalization. === Full Optimized Design === Diagram genereted with HQEd M6_6: The full hierarchical diagram is presented below: ARD model was designed using Varda M_3 (Visual ARD Rapid Development Alloy). \\ {{:pl:miw:2009:piw09_hades_1:elevator_test.png?400|}} ARD history (TPH): \\ {{:pl:miw:2009:piw09_hades_1:elevator_generated_tsh.dot.png?600|}} TPH and ARD combined: \\ {{:pl:miw:2009:piw09_hades_1:elevator_generated_tphard.dot.png?600|}} === Full ARD Model === ==== Refined Conceptual Design ==== ===== Physical Attribute Specification ===== ===== Structuralization ===== ===== Logical design ===== ARD MODEL in XML :