org.hops.dm.tad
Class action

java.lang.Object
  extended by org.hops.dm.tad.action
All Implemented Interfaces:
java.io.Serializable

public class action
extends java.lang.Object
implements java.io.Serializable

Stores the action information of a move.

Version:
3.0
Author:
Meritxell Gonzalez
See Also:
Serialized Form

Field Summary
 actionset actionid
          type of action
 icminf icm
          feedback information
 attrval inf
          attribute information
 icmmove moveicm
          load or reraise plan
 term postcond
          postcondition of the action ==> OR
 condition[] precond
          preconditions of the action ==> OR
 
Constructor Summary
action()
          Creates a new instance of action
action(action _a)
          Creates a new instance of action and copy the action input values
 
Method Summary
 void addTerm(term t, boolean newcond)
           
 java.lang.Object clone()
          Creates and returns a copy of this object.
 boolean equals(java.lang.Object o)
          Indicates whether some other object is "equal to" this one.
 boolean equalsTo(action a)
          Indicates whether a action is "equal to" this one.
 int hashCode()
           
 boolean is_action()
          Test if the action type is exequery
 boolean is_answering()
          Test if the action type is answering
 boolean is_asking()
          Test if the action type is asking or clarify
 boolean is_clarify()
          Test if the action type is clarify
 boolean is_empty()
          Tests if this object has no values
 boolean is_paginating()
          Test if the action type is pagination
 java.lang.String toFriendString()
          Returns a string representation of the object.
 java.lang.String toString()
          Returns a string representation of the object.
 boolean unifiable(action b)
          Test if the two actions are unifiables.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

actionid

public actionset actionid
type of action


icm

public icminf icm
feedback information


inf

public attrval inf
attribute information


moveicm

public icmmove moveicm
load or reraise plan


precond

public condition[] precond
preconditions of the action ==> OR


postcond

public term postcond
postcondition of the action ==> OR

Constructor Detail

action

public action()
Creates a new instance of action


action

public action(action _a)
Creates a new instance of action and copy the action input values

Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class java.lang.Object

equalsTo

public boolean equalsTo(action a)
Indicates whether a action is "equal to" this one.


is_empty

public boolean is_empty()
Tests if this object has no values


clone

public java.lang.Object clone()
Creates and returns a copy of this object.

Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object

toFriendString

public java.lang.String toFriendString()
Returns a string representation of the object.


is_clarify

public boolean is_clarify()
Test if the action type is clarify


is_asking

public boolean is_asking()
Test if the action type is asking or clarify


is_answering

public boolean is_answering()
Test if the action type is answering


is_action

public boolean is_action()
Test if the action type is exequery


is_paginating

public boolean is_paginating()
Test if the action type is pagination


unifiable

public boolean unifiable(action b)
Test if the two actions are unifiables. Two actions are unifiables if has the same action type, and - the attribute has the same name and they are not feedback or - they are feedback actions and - they a load or rearise of the same plan or - they has the same feedback information


addTerm

public void addTerm(term t,
                    boolean newcond)