assignment1
Class CNode

java.lang.Object
  extended by assignment1.CNode

public class CNode
extends java.lang.Object


Constructor Summary
CNode(IState arg_state, CNode arg_nodeParent, IAction arg_action, int arg_iDepth, double arg_Cost)
           
 
Method Summary
 IAction GetAction()
          Gets the value of m_action
 double GetCost()
           
 int GetDepth()
          Gets the value of m_iDepth
 CNode GetParent()
          Gets the value of m_nodeParent
 IState GetState()
          Gets the value of m_state
 void SetAction(IAction argM_action)
          Sets the value of m_action
 void SetDepth(int argM_iDepth)
          Sets the value of m_iDepth
 void SetParent(CNode argM_nodeParent)
          Sets the value of m_nodeParent
 void SetState(IState argM_state)
          Sets the value of m_state
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CNode

public CNode(IState arg_state,
             CNode arg_nodeParent,
             IAction arg_action,
             int arg_iDepth,
             double arg_Cost)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

GetState

public final IState GetState()
Gets the value of m_state

Returns:
the value of m_state

SetState

public final void SetState(IState argM_state)
Sets the value of m_state

Parameters:
argM_state - Value to assign to this.m_state

GetParent

public final CNode GetParent()
Gets the value of m_nodeParent

Returns:
the value of m_nodeParent

SetParent

public final void SetParent(CNode argM_nodeParent)
Sets the value of m_nodeParent

Parameters:
argM_nodeParent - Value to assign to this.m_nodeParent

GetAction

public final IAction GetAction()
Gets the value of m_action

Returns:
the value of m_action

SetAction

public final void SetAction(IAction argM_action)
Sets the value of m_action

Parameters:
argM_action - Value to assign to this.m_action

GetDepth

public final int GetDepth()
Gets the value of m_iDepth

Returns:
the value of m_iDepth

SetDepth

public final void SetDepth(int argM_iDepth)
Sets the value of m_iDepth

Parameters:
argM_iDepth - Value to assign to this.m_iDepth

GetCost

public double GetCost()