Question
1.The irrigation system has a section labeled Modifiability Profile. This section specifies how the system architecture should respond to particular modifications. A. Update the Irrigator
1.The irrigation system has a section labeled Modifiability Profile. This section specifies how the system architecture should respond to particular modifications.
A. Update the Irrigator update sequence diagram, Figure B-11-13 to capture the behavior of a Timer-Based Irrigation mode.
Modifiability Profile: Add Timer-Based IrrigationA new timer-based mode is added to AquaLush. When in timer-based mode, AquaLush starts an automatic irrigation cycle at the preset irrigation time and irrigates each zone for a set period of time or until the zones water allocation is exceeded. A developer is able to modify the design and source code to add this mode in two weeks.
Modify Irrigation ProcessThe automatic irrigation process is changed to allow users to specify concurrent irrigation of two or more zones. A developer is able to modify the design and source code to make this change in three weeks.
NOTE: USE JAVA AND ALSO UPDATE THE DIAGRAM
1.7 Irrigation Layer Behavior The central behavior of the Irrigation layer is its response time. The Irrigator object is an observer of the Clock. The behavior of the Irrigator update) operation is pictured in Figure B-11-13. sd update) self.lrrigator Clock z:Zonecycle:lrrigationCycle [cycle= u1] opt [mode--AUTO] t-getTime) d-getDay) opt [t=rrigationTime &dirrigationDay] cycle-create(zones)AutoCycle z-nextZone) reset) openAlValves) else tick() done ()isDone opt[done] end)I Figure B-11-13 Irrigator.update) Behavion The Irrigator calls IrrigationCycle.tick) whenever a cycle is in process. The AutoCyle.tick) operation is modeled in Figure B-11-14Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started