Class Node


public class Node
extends java.lang.Object

Field Summary

private Color
color
private int
costs
private int
costsUser
int
matrix_X
int
matrix_Y
private String
name
private Node
prevNode
private Vertex
prevVertex
private boolean
visited
private int
x
private int
y

Constructor Summary

Node(int x, int y, String name)
Node(int x, int y, String name, Color color)

Method Summary

Color
getColor()
int
getCosts()
Returns the costs.
int
getCostsUser()
Returns the costsUser.
int
getMatrix_X()
int
getMatrix_Y()
String
getName()
Node
getPrevNode()
Returns the prevNode.
Vertex
getPrevVertex()
Returns the prevVertex.
int
getX()
Method getX.
int
getY()
Method getY.
boolean
isVisited()
Returns the visited.
void
setColor(Color color)
void
setCosts(int costs)
Sets the costs.
void
setCostsUser(int costsUser)
Sets the costsUser.
void
setMatrix_X(int i)
void
setMatrix_Y(int i)
void
setName(String name)
void
setPrevNode(Node prevNode)
Sets the prevNode.
void
setPrevVertex(Vertex prevVertex)
Sets the prevVertex.
void
setVisited(boolean visited)
Sets the visited.
void
setX(int i)
void
setY(int i)

Field Details

color

private Color color

costs

private int costs

costsUser

private int costsUser

matrix_X

public int matrix_X

matrix_Y

public int matrix_Y

name

private String name

prevNode

private Node prevNode

prevVertex

private Vertex prevVertex

visited

private boolean visited

x

private int x

y

private int y

Constructor Details

Node

public Node(int x,
            int y,
            String name)

Node

public Node(int x,
            int y,
            String name,
            Color color)

Method Details

getColor

public Color getColor()

getCosts

public int getCosts()
Returns the costs.
Returns:
int

getCostsUser

public int getCostsUser()
Returns the costsUser.
Returns:
int

getMatrix_X

public int getMatrix_X()
Returns:

getMatrix_Y

public int getMatrix_Y()
Returns:

getName

public String getName()

getPrevNode

public Node getPrevNode()
Returns the prevNode.
Returns:
Node

getPrevVertex

public Vertex getPrevVertex()
Returns the prevVertex.
Returns:
Vertex

getX

public int getX()
Method getX.

getY

public int getY()
Method getY.

isVisited

public boolean isVisited()
Returns the visited.
Returns:
boolean

setColor

public void setColor(Color color)

setCosts

public void setCosts(int costs)
Sets the costs.
Parameters:
costs - The costs to set

setCostsUser

public void setCostsUser(int costsUser)
Sets the costsUser.
Parameters:
costsUser - The costsUser to set

setMatrix_X

public void setMatrix_X(int i)
Parameters:
i -

setMatrix_Y

public void setMatrix_Y(int i)
Parameters:
i -

setName

public void setName(String name)

setPrevNode

public void setPrevNode(Node prevNode)
Sets the prevNode.
Parameters:
prevNode - The prevNode to set

setPrevVertex

public void setPrevVertex(Vertex prevVertex)
Sets the prevVertex.
Parameters:
prevVertex - The prevVertex to set

setVisited

public void setVisited(boolean visited)
Sets the visited.
Parameters:
visited - The visited to set

setX

public void setX(int i)
Parameters:
i -

setY

public void setY(int i)
Parameters:
i -