State Diagrams

  1. Model the state diagram of class OrderDelivery shown on this slide with Rational Rose.
  2. Given the following behavior description of the class Transport, draw a state diagram capturing the behavior of Transport. Use states, events, nesting & concurrency, conditions, sending of messages. Use the methods (i.e., messages and events) shown on this slide.

    “A transport is responsible for transporting packets from one location to another. Each transport has a maximum capacity of packets he can transport. The number of actually loaded packets may not be greater than this capacity. So packets may only loaded if the capacity has not been reached. In parallel to the loading of packets a transport is scheduled for a target location. The target location may be changed (re-scheduled) until the transport starts its journey. The transport may start its journey only if it has been scheduled. The loading stops when the transport starts its journey. When the transport reaches its target location, the unloading begins. All packets that are addressed to this location are delivered to a local dispatcher. Then the transport waits again for loading and scheduling.”


Software Systems Institute ge.schroeder, jan-1999