Train gate system
This presentation is the property of its rightful owner.
Sponsored Links
1 / 21

Train Gate System PowerPoint PPT Presentation


  • 86 Views
  • Uploaded on
  • Presentation posted in: General

Train Gate System. A one-directional railway track crosses a road A gate at the crossing may be lowered or raised under computer control A short distance from the crossing a sensor detects entering trains A short distance from the crossing a sensor detects leaving trains.

Download Presentation

Train Gate System

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Train gate system

Train Gate System

  • A one-directional railway track crosses a road

  • A gate at the crossing may be lowered or raised under computer control

  • A short distance from the crossing a sensor detects entering trains

  • A short distance from the crossing a sensor detects leaving trains.


Physical requirements

Physical Requirements

  • The gate must be closed whenever there are trains in the area

  • The gate must be kept open when there are no trains in the area


Timing requirements

Timing Requirements

  • The arriving trains have an average inter-arrival period, avgP

  • The gate takes z time units to close (or open).


Simulation outputs

Simulation Outputs

  • Trace of events

  • Performance measures

    • Number of trains serviced

    • Worst reaction time

    • Worst response time

    • Number of deadlines missed:

      • Gate opening/closing

      • Communication timeouts


Train control

Train Control

  • A physical safety requirement of the system is that the gate is closed whenever there are trains in the area

  • The physical liveness requirement is to keep the gate open if there are no trains in the area

  • The controller C controls the gate with the openg (og) and closeg (cg) commands.


Timeouts

Timeouts

  • Activity timeouts

  • Communications timeout


Activity timeouts

Activity Timeouts

  • The Gate takes a maximum of z time units to close or to open

  • The controller process normally waits for the Gate to open or close

  • If the Gate takes longer than the maximum allocated time, the controller flags a timeout for the gate and triggers an alarm


Communication timeouts

Communication Timeouts

  • The real-time systems uses synchronous communications

  • In the normal case, one of the processes, either the sender or the receiver, will wait for the other to establish the communication

  • A communication timer object will interrupt a process attempting to communicate, on timeout.


Sequence diagram for train arrival

Sequence Diagram for Train Arrival


Main class diagram

Main Class Diagram


Train gate system communication diagram

Train Gate SystemCommunication Diagram


Entry sensor

Entry Sensor


Revised entry sensor

Revised Entry sensor


Exit sensor

Exit Sensor


Revised exit sensor

Revised Exit Sensor


Monitor

Monitor


Revised monitor

Revised Monitor


Controller process

Controller Process


Revised controller process

Revised Controller Process


Gate process

Gate Process


Revised gate

Revised Gate


  • Login