net.sf.myra.framework
Class Environment

java.lang.Object
  extended by net.sf.myra.framework.Environment

public class Environment
extends java.lang.Object

The colony environment (in practice, only the current colony iteration).

Version:
$Revision$ $Date:: $
Author:
Fernando Esteban Barril Otero

Constructor Summary
Environment(Colony colony, Scheduler scheduler)
          Creates a new Environment instance.
 
Method Summary
 Colony getColony()
          Returns the colony.
 int getIteration()
          Returns the current iteration of the colony.
 Scheduler getScheduler()
          Returns the scheduler.
 void increment()
          Increment the colony's iteration value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Environment

public Environment(Colony colony,
                   Scheduler scheduler)
Creates a new Environment instance.

Parameters:
colony -
Method Detail

getColony

public Colony getColony()
Returns the colony.

Returns:
the colony.

getScheduler

public Scheduler getScheduler()
Returns the scheduler.

Returns:
the scheduler.

getIteration

public int getIteration()
Returns the current iteration of the colony.

Returns:
the colony's current iteration.

increment

public void increment()
Increment the colony's iteration value.



Copyright © 2013. All Rights Reserved.