org.processmining.framework.models.recommendation
Class RecommendationResult

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Recommendation>
              extended by org.processmining.framework.models.recommendation.RecommendationResult
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Recommendation>, java.util.Collection<Recommendation>, java.util.List<Recommendation>, java.util.RandomAccess

public class RecommendationResult
extends java.util.ArrayList<Recommendation>

Data structure for storing a result for requesting recommendation for scheduling in a process management system. (based on an array list of Recommendation objects)

Author:
Christian W. Guenther (christian@deckfour.org)
See Also:
Serialized Form

Field Summary
protected  java.lang.String queryId
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
RecommendationResult(java.lang.String queryId)
          Creates a new, empty recommendation result for the identified query
 
Method Summary
 boolean add(Recommendation rec)
           
 java.lang.String getQueryId()
           
 java.lang.String toString()
           
 
Methods inherited from class java.util.ArrayList
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, 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, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Field Detail

queryId

protected java.lang.String queryId
Constructor Detail

RecommendationResult

public RecommendationResult(java.lang.String queryId)
Creates a new, empty recommendation result for the identified query

Parameters:
queryId - the unique ID of the query to which this is a result.
Method Detail

getQueryId

public java.lang.String getQueryId()
Returns:
the unique ID of the query to which this is a result

add

public boolean add(Recommendation rec)
Specified by:
add in interface java.util.Collection<Recommendation>
Specified by:
add in interface java.util.List<Recommendation>
Overrides:
add in class java.util.ArrayList<Recommendation>

toString

public java.lang.String toString()
Overrides:
toString in class java.util.AbstractCollection<Recommendation>