cad.simcad.dummies
Class DummyIncident

java.lang.Object
  |
  +--cad.simcad.dummies.DummyIncident
All Implemented Interfaces:
Incident, java.io.Serializable

public class DummyIncident
extends java.lang.Object
implements Incident

Author:
Administrator
See Also:
Serialized Form

Constructor Summary
DummyIncident(EmergencyVehicule ev)
          Creates a new instance of DummyIncident
 
Method Summary
 java.lang.String getDescription()
          Method getDescription.
 EmergencyVehicule getEmergencyVehicule()
          Method getEmergencyVehicule.
 Gravity getGravity()
          Method getGravity.
 Id getIncidentId()
          Method getIncidentId.
 Place getPlace()
          Method getPlace.
 Team getTeam()
          Method getTeam.
 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 setTeam(Team t)
          Method setTeam.
 void setTime(java.sql.Timestamp d)
          Method setTime.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyIncident

public DummyIncident(EmergencyVehicule ev)
Creates a new instance of DummyIncident

Method Detail

getEmergencyVehicule

public EmergencyVehicule getEmergencyVehicule()
Method getEmergencyVehicule.

Specified by:
getEmergencyVehicule in interface Incident
Pre:
the incident has a non-null EmergencyVehicule
Returns:
EmergencyVehicule
Throws:
IncidentNullEmergencyVehiculeException
Post:
/

getGravity

public Gravity getGravity()
Method getGravity.

Specified by:
getGravity in interface Incident
Pre:
the incident has a non-null gravity
Returns:
Gravity
Throws:
IncidentNullGravityException
Post:
/

getPlace

public Place getPlace()
Method getPlace.

Specified by:
getPlace in interface Incident
Pre:
the Incident has a non-null place
Returns:
Place
Throws:
IncidentNullPlaceException
Post:
/

getTeam

public Team getTeam()
Method getTeam.

Pre:
the incident has a non-null team attribute
Returns:
Team
Throws:
IncidentNullTeamException
Post:
/

getTime

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

Specified by:
getTime in interface Incident
Pre:
the incident has a non-null Time
Returns:
Date
Throws:
IncidentNullTimeException
Post:
/

setEmergencyVehicule

public void setEmergencyVehicule(EmergencyVehicule v)
Method setEmergencyVehicule.

Specified by:
setEmergencyVehicule in interface Incident
Pre:
/
Returns:
/
Throws:
/
Post:
the incident has a new EmergencyVehicule

setGravity

public void setGravity(Gravity g)
Method setGravity.

Specified by:
setGravity in interface Incident
Pre:
/
Returns:
/
Throws:
UnknownGravityException
Post:
the attribute gravity has changed to g

setPlace

public void setPlace(Place p)
Method setPlace.

Specified by:
setPlace in interface Incident
Pre:
/
Returns:
/
Throws:
OutOfMapException
Post:
the attribute place has changed to p

setTeam

public void setTeam(Team t)
Method setTeam.

Pre:
/
Returns:
/
Throws:
/
Post:
the incident has a new team attribute

setTime

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

Specified by:
setTime in interface Incident
Pre:
/
Returns:
/
Throws:
/
Post:
the incident has changed to d

getDescription

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

Specified by:
getDescription in interface Incident
Pre:
the incident has a non-null EmergencyVehicule
Returns:
Description of the incident
Throws:
IncidentNullEmergencyVehiculeException
Post:
/

getIncidentId

public Id getIncidentId()
Method getIncidentId.

Specified by:
getIncidentId in interface Incident
Pre:
the incident has a non-null Id
Returns:
Id of the incident
Throws:
IncidentNullEmergencyVehiculeException
Post:
/

setId

public void setId(Id i)
Method setId

Specified by:
setId in interface Incident
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