cad.simcad.objectserver.spec.cac.objects
Interface Incident

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
DummyIncident, IncidentI

public interface Incident
extends java.io.Serializable

Author:
pfernand This interface desribes an Incident object, with a location, gravity, time, EmergencyVehicule and team.

Method Summary
 java.lang.String getDescription()
          Method getDescription.
 EmergencyVehicule getEmergencyVehicule()
          Method getEmergencyVehicule.
 Gravity getGravity()
          Method getGravity.
 Id getIncidentId()
          Method getIncidentId.
 Place getPlace()
          Method getPlace.
 java.sql.Timestamp getTime()
          Method getTime.
 void setEmergencyVehicule(EmergencyVehicule v)
          Method setEmergencyVehicule.
 void setGravity(Gravity g)
          Method setGravity.
 void setId(Id i)
          Method setId
 void setPlace(Place p)
          Method setPlace.
 void setTime(java.sql.Timestamp t)
          Method setTime.
 

Method Detail

setPlace

public void setPlace(Place p)
Method setPlace.

Pre:
/
Returns:
/
Throws:
OutOfMapException
Post:
the attribute place has changed to p

getPlace

public Place getPlace()
Method getPlace.

Pre:
the Incident has a non-null place
Returns:
Place
Throws:
IncidentNullPlaceException
Post:
/

setGravity

public void setGravity(Gravity g)
Method setGravity.

Pre:
/
Returns:
/
Throws:
UnknownGravityException
Post:
the attribute gravity has changed to g

getGravity

public Gravity getGravity()
Method getGravity.

Pre:
the incident has a non-null gravity
Returns:
Gravity
Throws:
IncidentNullGravityException
Post:
/

setTime

public void setTime(java.sql.Timestamp t)
Method setTime.

Pre:
/
Returns:
/
Throws:
/
Post:
the incident has changed to d

getTime

public java.sql.Timestamp getTime()
Method getTime.

Pre:
the incident has a non-null Time
Returns:
Date
Throws:
IncidentNullTimeException
Post:
/

setEmergencyVehicule

public void setEmergencyVehicule(EmergencyVehicule v)
Method setEmergencyVehicule.

Pre:
/
Returns:
/
Throws:
/
Post:
the incident has a new EmergencyVehicule

getEmergencyVehicule

public EmergencyVehicule getEmergencyVehicule()
Method getEmergencyVehicule.

Pre:
the incident has a non-null EmergencyVehicule
Returns:
EmergencyVehicule
Throws:
IncidentNullEmergencyVehiculeException
Post:
/

getDescription

public java.lang.String getDescription()
Method getDescription.

Pre:
the incident has a non-null EmergencyVehicule
Returns:
Description of the incident
Throws:
IncidentNullEmergencyVehiculeException
Post:
/

getIncidentId

public Id getIncidentId()
Method getIncidentId.

Pre:
the incident has a non-null Id
Returns:
Id of the incident
Throws:
IncidentNullEmergencyVehiculeException
Post:
/

setId

public void setId(Id i)
Method setId

Pre:
/
Returns:
/
Throws:
IncidentNullEmergencyVehiculeException
Post:
the incident has a new Id

Logo

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