Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package dk.sdu.mmmi.cbse.osgienemy;
- /**
- *
- * @author mehgn
- */
- public class Node {
- private int i, j;
- private Node parent;
- private int h, f;
- private boolean solution;
- public boolean isSolution() {
- return solution;
- }
- public void setSolution(boolean solution) {
- this.solution = solution;
- }
- public Node(int i, int j) {
- this.i = i;
- this.j = j;
- }
- @Override
- public String toString(){
- return "[" + i + ", " + j + "]";
- }
- public int getI() {
- return i;
- }
- public void setI(int i) {
- this.i = i;
- }
- public int getJ() {
- return j;
- }
- public void setJ(int j) {
- this.j = j;
- }
- public Node getParent() {
- return parent;
- }
- public void setParent(Node parent) {
- this.parent = parent;
- }
- public int getH() {
- return h;
- }
- public void setH(int h) {
- this.h = h;
- }
- public int getF() {
- return f;
- }
- public void setF(int f) {
- this.f = f;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement