C# Class TRManager.Timetable

Provides a collection for Incident objects and monitors the time since the Incident arrived in the TR. The class fires several events to notify about changes.
Datei anzeigen Open project: UristMcMiner/SE-Projekt_RWB.csharp Class Usage Examples

Public Methods

Method Description
Start ( ) : void

Starts the monitoring of the time.

Stop ( ) : void

Stops the monitoring of the time.

Timetable ( ) : System

Creates a new Timetable object and prepares the BackgroundWorker.

addIncident ( Incident incident ) : void

Adds an incident for monitoring.

releaseIncident ( Incident incident ) : void

Removes an incident from monitoring and writes the new leaveTime into the database.

startUp ( ) : void

Retrieves all Incidents which don't have a leaveTime for the Database.

Private Methods

Method Description
bw_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void

Reacts to a timer update.

updateTimer ( object sender, DoWorkEventArgs e ) : void

Updates the time regularly.

Method Details

Start() public method

Starts the monitoring of the time.
public Start ( ) : void
return void

Stop() public method

Stops the monitoring of the time.
public Stop ( ) : void
return void

Timetable() public method

Creates a new Timetable object and prepares the BackgroundWorker.
public Timetable ( ) : System
return System

addIncident() public method

Adds an incident for monitoring.
public addIncident ( Incident incident ) : void
incident Incident The Incident to add.
return void

releaseIncident() public method

Removes an incident from monitoring and writes the new leaveTime into the database.
public releaseIncident ( Incident incident ) : void
incident Incident The Incident to remove.
return void

startUp() public method

Retrieves all Incidents which don't have a leaveTime for the Database.
public startUp ( ) : void
return void