simulations.core.history
Class Turn

java.lang.Object
  extended by simulations.core.history.Turn
All Implemented Interfaces:
java.lang.Cloneable

public class Turn
extends java.lang.Object
implements java.lang.Cloneable

Contains a list (n elt) of player's turn


Constructor Summary
Turn()
          Constructor
Turn(java.util.ArrayList playersTurnsList)
          Creates a new instance of Turn
 
Method Summary
 void add(PlayerTurn playerTurn)
          Add the player turn in the turn
 boolean equals(java.lang.Object o)
          overide of the equals method
 Turn getClone()
          This method returns a clone of Turn
 java.util.ArrayList getPlayersTurnsList()
          Getter for property playersTurnsList.
 void print()
          Print the turn
 void setPlayersTurnsList(java.util.ArrayList playersTurnsList)
          Setter for property playersTurnsList.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Turn

public Turn(java.util.ArrayList playersTurnsList)
Creates a new instance of Turn

Parameters:
playersTurnsList - The player's turn list

Turn

public Turn()
Constructor

Method Detail

add

public void add(PlayerTurn playerTurn)
Add the player turn in the turn

Parameters:
playerTurn - The player turn to add

getPlayersTurnsList

public java.util.ArrayList getPlayersTurnsList()
Getter for property playersTurnsList.

Returns:
Value of property playersTurnsList.

setPlayersTurnsList

public void setPlayersTurnsList(java.util.ArrayList playersTurnsList)
Setter for property playersTurnsList.

Parameters:
playersTurnsList - New value of property playersTurnsList.

print

public void print()
Print the turn


equals

public boolean equals(java.lang.Object o)
overide of the equals method

Overrides:
equals in class java.lang.Object
Parameters:
o - The object to compare
Returns:
true if the two object are equal

getClone

public Turn getClone()
This method returns a clone of Turn

Returns:
returns a clone of Turn