edu.umich.eecs.tac.props
Class Query

java.lang.Object
  extended by edu.umich.eecs.tac.props.AbstractTransportable
      extended by edu.umich.eecs.tac.props.ManufacturerComponentComposable
          extended by edu.umich.eecs.tac.props.Query
All Implemented Interfaces:
java.io.Serializable, se.sics.isl.transport.Transportable

public class Query
extends ManufacturerComponentComposable

The query class represents a set of information the user is revealing during a search. A query can contain a manufacturer and a component, a manufacturer, a component, or neither.

Author:
Patrick Jordan, Lee Callender
See Also:
Serialized Form

Constructor Summary
Query()
          Creates a new query with without manufacturer and component information.
Query(java.lang.String manufacturer, java.lang.String component)
          Creates a new query with the given manufacturer and component.
 
Method Summary
 QueryType getType()
          Returns the query type of the query.
 
Methods inherited from class edu.umich.eecs.tac.props.ManufacturerComponentComposable
calculateHashCode, composableEquals, equals, getComponent, getManufacturer, hashCode, readWithLock, setComponent, setManufacturer, toString, writeWithLock
 
Methods inherited from class edu.umich.eecs.tac.props.AbstractTransportable
getTransportName, isLocked, lock, lockCheck, read, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Query

public Query(java.lang.String manufacturer,
             java.lang.String component)
Creates a new query with the given manufacturer and component.

Parameters:
manufacturer - the manufacturer in the query
component - the component in the query

Query

public Query()
Creates a new query with without manufacturer and component information.

Method Detail

getType

public final QueryType getType()
Returns the query type of the query. This method delegates to QueryType.value(Query).

Returns:
the query type of the query.


Copyright © 2007-2009 Association for Trading Agent Research. All Rights Reserved.