cad.simcad.dummies
Class DumMissionTracker

java.lang.Object
  |
  +--cad.simcad.dummies.DumMissionTracker
All Implemented Interfaces:
MissionTracker

public class DumMissionTracker
extends java.lang.Object
implements MissionTracker

Author:
Administrator

Constructor Summary
DumMissionTracker(CacMediatorI ca)
          Creates a new instance of DumMissionTracker
 
Method Summary
 TrackerReport getTrackerReport(Incident i)
          Not Implemented in current version
 void trackMission(Incident inc)
          methode ajoutee pour traiter tout le trackage d'un coup
 void waitForAck(Incident i, int typeAck)
          Method that spaws a thread waiting for an Ack from the Vehicle associated with the Incident given in parameters
 void warnVehicule(Incident i)
          Warn the vehicule associated with the incident
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DumMissionTracker

public DumMissionTracker(CacMediatorI ca)
Creates a new instance of DumMissionTracker

Method Detail

getTrackerReport

public TrackerReport getTrackerReport(Incident i)
                               throws java.lang.RuntimeException
Not Implemented in current version

Specified by:
getTrackerReport in interface MissionTracker
Parameters:
i - Incident
Returns:
A TrackerReport
Throws:
RunTimeException - No Implementation
java.lang.RuntimeException

trackMission

public void trackMission(Incident inc)
methode ajoutee pour traiter tout le trackage d'un coup

Specified by:
trackMission in interface MissionTracker

waitForAck

public void waitForAck(Incident i,
                       int typeAck)
Method that spaws a thread waiting for an Ack from the Vehicle associated with the Incident given in parameters

Parameters:
i - an Incident
typeAck - type Ack
Pre:
An Incident
Post:
Starts a new thread, waiting for Ack. If Ack is recieved, nothing is done. Else an AckNotRecievedEvent is generated

warnVehicule

public void warnVehicule(Incident i)
                  throws ConnectionToObjectException
Warn the vehicule associated with the incident

Specified by:
warnVehicule in interface MissionTracker
Parameters:
i - an Incident
Pre:
An incident object associated with an vehicule
Throws:
ConnectionToObjectException - if the method could not consistently be sure that the Vehicule has been warned.
Post:
The Vehicules's MDTs are called. Incident's information is sent to MDT's

Logo

With the help of www.sourceforge.net and www.info.ucl.ac.be