lnsc.page
Class AbstractAction

java.lang.Object
  |
  +--lnsc.page.AbstractAction
All Implemented Interfaces:
Action
Direct Known Subclasses:
NoAction

public abstract class AbstractAction
extends java.lang.Object
implements Action

Optional basis for class implementing Action interface. Derived classes constructor must fill the protected variables. Add necessary action information and properties.


Constructor Summary
AbstractAction()
           
 
Method Summary
 double getCost()
          Cost associated to the action.
 boolean isValid()
          Indicates whether the action is valid or not.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractAction

public AbstractAction()
Method Detail

getCost

public double getCost()
Description copied from interface: Action
Cost associated to the action.

Specified by:
getCost in interface Action
Returns:
cost of the action.

isValid

public boolean isValid()
Description copied from interface: Action
Indicates whether the action is valid or not.

Specified by:
isValid in interface Action
Returns:
true if it is valid, false otherwise.

toString

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