edu.umich.eecs.tac.props
Class AbstractQueryKeyedReportTransportable<T extends QueryEntry>
java.lang.Object
edu.umich.eecs.tac.props.AbstractTransportable
edu.umich.eecs.tac.props.AbstractTransportableEntryListBacking<S>
edu.umich.eecs.tac.props.AbstractKeyedEntryList<Query,T>
edu.umich.eecs.tac.props.AbstractQueryKeyedReportTransportable<T>
- Type Parameters:
T
- the query entry class
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Iterable<Query>, se.sics.isl.transport.Transportable
- Direct Known Subclasses:
- BidBundle, QueryReport, SalesReport
public abstract class AbstractQueryKeyedReportTransportable<T extends QueryEntry>
- extends AbstractKeyedEntryList<Query,T>
This class provides a skeletal implementation of the AbstractKeyedEntryList
abstract class, where the key is
a Query
object.
- Author:
- Patrick Jordan
- See Also:
- Serialized Form
Methods inherited from class edu.umich.eecs.tac.props.AbstractTransportableEntryListBacking |
addEntry, afterAddEntry, afterRemoveEntry, beforeAddEntry, beforeRemoveEntry, entryClass, getEntries, getEntry, readAfterEntries, readBeforeEntries, readWithLock, removeEntry, size, toString, toStringAfterEntries, toStringBeforeEntries, writeAfterEntries, writeBeforeEntries, writeWithLock |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractQueryKeyedReportTransportable
public AbstractQueryKeyedReportTransportable()
- Sole constructor. (For invocation by subclass constructors, typically
implicit.)
addQuery
public final int addQuery(Query query)
- Add a query key.
- Parameters:
query
- the query key to be added.
- Returns:
- the index of the key
containsQuery
public final boolean containsQuery(Query query)
- Check whether the query key exists in the key set.
- Parameters:
query
- the query to test containment.
- Returns:
true
if the query key exists in the key set and
false
otherwise.
getQuery
public final Query getQuery(int index)
- Get the query key at the specified index.
- Parameters:
index
- the key index.
- Returns:
- the query key at the specified index.
Copyright © 2007-2009 Association for Trading Agent Research. All Rights Reserved.