cad.simcad.mdt_server
Class MDTDeviceI

java.lang.Object
  |
  +--cad.simcad.mdt_server.MDTDeviceI
All Implemented Interfaces:
java.io.Serializable, Status

public class MDTDeviceI
extends java.lang.Object
implements Status

Author:
pablo
See Also:
Serialized Form

Field Summary
protected  Id _id
           
protected  java.lang.String _status
           
protected  java.lang.String beep
           
protected  java.lang.String free
           
protected  java.lang.String in_mission
           
protected  java.lang.String not_available
           
protected  java.lang.String sur_les_lieux
           
 
Constructor Summary
MDTDeviceI(Id id, java.lang.String status)
          Creates a new instance of MDTDeviceI
MDTDeviceI(int id)
          Creates a new instance of MDTDeviceI Initial status is FREE
 
Method Summary
 Id getId()
          Returns the ID for this Status object
 java.lang.String getStatusString()
          Returns the Status as a string
 boolean isFreeForMission()
          Returns true if status means we can send Object to make a mission
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_id

protected Id _id

free

protected java.lang.String free

in_mission

protected java.lang.String in_mission

not_available

protected java.lang.String not_available

sur_les_lieux

protected java.lang.String sur_les_lieux

beep

protected java.lang.String beep

_status

protected java.lang.String _status
Constructor Detail

MDTDeviceI

public MDTDeviceI(int id)
Creates a new instance of MDTDeviceI Initial status is FREE

Parameters:
id - integer value for id

MDTDeviceI

public MDTDeviceI(Id id,
                  java.lang.String status)
Creates a new instance of MDTDeviceI

Method Detail

getId

public Id getId()
Returns the ID for this Status object

Specified by:
getId in interface Status
Pre:
-
Post:
the ID identifying the Object for this status

getStatusString

public java.lang.String getStatusString()
Returns the Status as a string

Specified by:
getStatusString in interface Status
Pre:
-
Returns:
a String object
Post:
Returns a String s: s= "mission" Object Busy in Mission s= "free" ObjectFree

isFreeForMission

public boolean isFreeForMission()
Returns true if status means we can send Object to make a mission

Specified by:
isFreeForMission in interface Status
Pre:
-
Post:
returns true if status means we can send Object to make a mission false otherwise

Logo

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