public class Cells
extends java.lang.Object
Constructor and Description |
---|
Cells(Cell c) |
Cells(Cells cell)
Constructor that creates a Cells by copying the given Cells
|
Cells(int cost)
Constructor that creates a cells without any OperationSequence but with a
cost
|
Cells(int cost,
java.util.HashMap<java.lang.Integer,java.util.HashSet<OperationSequence>> hm) |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Cell> |
getCells()
Returns the ArrayList of cell
|
int |
getMinimalCost()
Returns the minimal cost of the ArrayList
|
void |
setCost(java.util.ArrayList<Cell> cells)
Changes the ArrayList with the ArrayList given
|
void |
setCost(int cost)
Changes the current minimal cost with the cost given
|
public Cells(Cells cell)
Cells
- Cell to copypublic Cells(int cost)
cost
- Cost of the cellpublic Cells(int cost, java.util.HashMap<java.lang.Integer,java.util.HashSet<OperationSequence>> hm)
public Cells(Cell c)
public int getMinimalCost()
public void setCost(int cost)
cost
- Cost to usepublic java.util.ArrayList<Cell> getCells()
public void setCost(java.util.ArrayList<Cell> cells)
ArrayList
-