aminePlatform.engines.prologPlusCG.util
Class Rule

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended byaminePlatform.engines.prologPlusCG.util.Rule
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class Rule
extends java.util.ArrayList
implements java.io.Serializable

Title: Rule

Description: An ArrayList of Goal

Copyright: Copyright (c) Adil KABBAJ, 2004-2009

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Rule()
           
Rule(int i)
           
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(Rule rule)
           
 void finalize()
           
 java.lang.Object getGoal(int i)
           
 void getVariables(java.util.ArrayList varsIdent)
           
 java.lang.String toString()
          public void clear() { Object goal = null; for (Iterator i = this.iterator(); i.hasNext(); ) { goal = i.next(); if (goal instanceof AmineObject) ((AmineObject) goal).clear(); goal = null; // for gc } super.clear(); }
 java.lang.String toString(Lexicon lexicon)
           
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Constructor Detail

Rule

public Rule()

Rule

public Rule(int i)
Method Detail

finalize

public void finalize()

toString

public java.lang.String toString()
public void clear() { Object goal = null; for (Iterator i = this.iterator(); i.hasNext(); ) { goal = i.next(); if (goal instanceof AmineObject) ((AmineObject) goal).clear(); goal = null; // for gc } super.clear(); }


toString

public java.lang.String toString(Lexicon lexicon)

equals

public boolean equals(Rule rule)

clone

public java.lang.Object clone()

getGoal

public java.lang.Object getGoal(int i)

getVariables

public void getVariables(java.util.ArrayList varsIdent)