cad.simcad.worldsimulator.objects.parts
Class MDTStatus

java.lang.Object
  |
  +--cad.simcad.worldsimulator.objects.parts.MDTStatus
All Implemented Interfaces:
java.io.Serializable, Status

public class MDTStatus
extends java.lang.Object
implements Status

An implementation of the Status interface

Author:
Charles-Philip Bentley, pfernand
See Also:
Serialized Form

Constructor Summary
MDTStatus(Id _i, java.lang.String newStatusString)
           
MDTStatus(int i)
          Creates a new instance of MDTStatus
 
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
 void setStatusString(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MDTStatus

public MDTStatus(int i)
Creates a new instance of MDTStatus


MDTStatus

public MDTStatus(Id _i,
                 java.lang.String newStatusString)
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

setStatusString

public void setStatusString(java.lang.String s)

Logo

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