org.hops.dm.tad
Class condition

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

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

conditions that applies on actions. A condition is an attribute that MUST or MUST NOT contain a value, in a given stack. This condition is an AND-of-term. In order to satisfy this condition,

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

Constructor Summary
condition()
          Creates a new instance of condition
 
Method Summary
 void addTerm(term _t)
          add a new term
 java.lang.Object clone()
          Creates and returns a copy of this object.
 boolean contains(term _t)
          checks wheter contains the term
 boolean equals(java.lang.Object o)
          Indicates whether some other object is "equal to" this one.
 boolean equalsTo(condition _c)
          Indicates whether a condition is "equal to" this one.
 term get(int i)
          get
 int hashCode()
           
 boolean is_empty()
          Tests if this object has no values
 int size()
          size
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

condition

public condition()
Creates a new instance of condition

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(condition _c)
Indicates whether a condition is "equal to" this one.


contains

public boolean contains(term _t)
checks wheter contains the term


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

addTerm

public void addTerm(term _t)
add a new term


toString

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

Overrides:
toString in class java.lang.Object

size

public int size()
size


get

public term get(int i)
get