cad.simcad.worldsimulator.world
Class DefaultOwner

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

public class DefaultOwner
extends java.lang.Object
implements Owner, java.io.Serializable

A Default implementation of the Owner interface

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

Constructor Summary
DefaultOwner()
          Creates a new instance of DefaultOwner
 
Method Summary
 AgeContext getAgeContext()
          Returns the age id for this Genomable
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultOwner

public DefaultOwner()
Creates a new instance of DefaultOwner

Method Detail

getColor

public 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

Specified by:
getColor in interface Owner
Pre:
An Owner initialized
Returns:
a Color
Post:
The Color associated with the Owner is returned

getGenomable

public Genomable getGenomable()
Returns the Genomable of this Owner

Specified by:
getGenomable in interface Owner
Pre:
An Owner initialized
Returns:
a Genomable object
Post:
The Genomable associated with the Owner is returned

getAgeContext

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

Specified by:
getAgeContext in interface Owner
Pre:
An initialized Genomable object
Returns:
an AgeContext object
Post:
The AgeContext of this Genomable 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

Logo

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