cad.simcad.main_server
Class MissionRecorderI

java.lang.Object
  |
  +--cad.simcad.main_server.MissionRecorderI
All Implemented Interfaces:
MissionRecorder

public class MissionRecorderI
extends java.lang.Object
implements MissionRecorder

Author:
sgroutar To change this generated comment edit the template variable "typecomment": Window>Preferences>Java>Templates. To enable and disable the creation of type comments go to Window>Preferences>Java>Code Generation.

Constructor Summary
MissionRecorderI(CacMediatorI cac_mediator, VehiculeChooser v)
           
 
Method Summary
 Incident changeEmergencyVehicule(Incident i)
          Cette methode reattribue une amb a l'incident i Ici ya une couille dans le pate. si une amb est free et ne repond pas aux ordres de partir en mission.
 Incident createIncident(Form f)
          Create an Incident object from the Form given in argument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MissionRecorderI

public MissionRecorderI(CacMediatorI cac_mediator,
                        VehiculeChooser v)
Method Detail

createIncident

public Incident createIncident(Form f)
                        throws CACMissionRecordingException,
                               FormException,
                               PersistentDataException
Create an Incident object from the Form given in argument

Specified by:
createIncident in interface MissionRecorder
Parameters:
f - a Form object
Pre:
formulaire f non duplicated - il existe une collection d'ambulances libres A
Returns:
the incident i, newly created
Throws:
CACMissionRecordingException - throwned if there was a logical error while creating a new incident
FormException - throwned if there is an error in the form / to see
PersistentDataException - Throwned if there was an error while using the Persistent Layer
Post:
- un incident i est cree dans la DB - i est associe a a t.q. a belongs to A et a est la plus proche de i

changeEmergencyVehicule

public Incident changeEmergencyVehicule(Incident i)
                                 throws CACMissionRecordingException,
                                        PersistentDataException
Cette methode reattribue une amb a l'incident i Ici ya une couille dans le pate. si une amb est free et ne repond pas aux ordres de partir en mission. Alors on ne recoit pas l'ack et on en choisit une autre. Mais il ya de fortes chances pour qu'on rechoisisse la meme on est donc dans le pate.

Specified by:
changeEmergencyVehicule in interface MissionRecorder
CACMissionRecordingException
PersistentDataException

Logo

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