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 void
addToNodeCount(int value)
int
getColID()
Node
getColumn()
Node
getDown()
Node
getLeft()
int
getNodeCount()
Node
getRight()
int
getRowID()
Node
getUp()
int
getValue()
boolean
hasColumn()
boolean
hasDown()
boolean
hasLeft()
boolean
hasRight()
boolean
hasUp()
void
incrementNodeCount()
void
setColID(int colID)
void
setColumn(Node column)
void
setDown(Node down)
void
setLeft(Node left)
void
setNodeCount(int nodeCount)
void
setRight(Node right)
void
setRowID(int rowID)
void
setUp(Node up)
void
setValue(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()
-