Package Phase1
Class Node
java.lang.Object
Phase1.Node
public class Node
extends java.lang.Object
Class that allows the creation of Nodes for the implementation of Dancing Links
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidaddToNodeCount(int value)intgetColID()NodegetColumn()NodegetDown()NodegetLeft()intgetNodeCount()NodegetRight()intgetRowID()NodegetUp()intgetValue()booleanhasColumn()booleanhasDown()booleanhasLeft()booleanhasRight()booleanhasUp()voidincrementNodeCount()voidsetColID(int colID)voidsetColumn(Node column)voidsetDown(Node down)voidsetLeft(Node left)voidsetNodeCount(int nodeCount)voidsetRight(Node right)voidsetRowID(int rowID)voidsetUp(Node up)voidsetValue(int v)
-
Constructor Details
-
Method Details
-
getValue
public int getValue() -
getUp
-
getDown
-
getLeft
-
getRight
-
getColumn
-
getRowID
public int getRowID() -
getColID
public int getColID() -
getNodeCount
public int getNodeCount() -
setValue
public void setValue(int v) -
setUp
-
setDown
-
setLeft
-
setRight
-
setColumn
-
setRowID
public void setRowID(int rowID) -
setColID
public void setColID(int colID) -
setNodeCount
public void setNodeCount(int nodeCount) -
addToNodeCount
public void addToNodeCount(int value) -
incrementNodeCount
public void incrementNodeCount() -
hasLeft
public boolean hasLeft() -
hasRight
public boolean hasRight() -
hasUp
public boolean hasUp() -
hasDown
public boolean hasDown() -
hasColumn
public boolean hasColumn()
-