cad.simcad.worldsimulator.world
Class LondonService

java.lang.Object
  |
  +--cad.simcad.worldsimulator.world.LondonService
All Implemented Interfaces:
Owner, java.io.Serializable

public class LondonService
extends java.lang.Object
implements Owner

Version:
1.0
Author:
Charles-Philip Bentley
See Also:
Serialized Form

Constructor Summary
LondonService()
          Creates new LondonService
 
Method Summary
 AgeContext getAgeContext()
          Returns the age id for this Owner
 java.awt.Color getColor()
          Returns the Color for this Owner This method is here to show that the Owner can be usefull on the top of Genomables
 Genomable getGenomable()
          Returns the Genomable of this Owner
 void setAgeContext(AgeContext ac)
          Set the AgeContext for this Genomable
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LondonService

public LondonService()
Creates new LondonService

Method Detail

getGenomable

public Genomable getGenomable()
Description copied from interface: Owner
Returns the Genomable of this Owner

Specified by:
getGenomable in interface Owner
Returns:
a Genomable object

getColor

public java.awt.Color getColor()
Description copied from interface: Owner
Returns the Color for this Owner This method is here to show that the Owner can be usefull on the top of Genomables

Specified by:
getColor in interface Owner
Returns:
a Color

getAgeContext

public AgeContext getAgeContext()
Returns the age id for this Owner

Specified by:
getAgeContext in interface Owner
Pre:
An initialized Owner object
Returns:
an AgeContext object
Post:
The AgeContext of this Owner object is returned

setAgeContext

public void setAgeContext(AgeContext ac)
Set the AgeContext for this Genomable

Specified by:
setAgeContext in interface Owner
Parameters:
ac - the new AgeContext
Pre:
-
Post:
The Owner own AgeContext field is updated

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Logo

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