agg.xt_basis
Class Query_Type

java.lang.Object
  extended by agg.util.csp.Query
      extended by agg.xt_basis.Query_Type

public class Query_Type
extends Query


Field Summary
 
Fields inherited from class agg.util.csp.Query
itsWeight, typeNameOfVariable
 
Constructor Summary
Query_Type(java.util.List<GraphObject> objects, Variable querytar)
          Construct myself to be a constant query for the objects given in the parameter objects.
 
Method Summary
 java.util.Enumeration<?> execute()
          Return an Enumeration of candidate values for the target variable.
 int getAvgIncomingDegree()
          all nodes in this type query.
 int getAvgOutgoingDegree()
          Calculates the average degree of incoming arcs of all nodes in this type query.
 java.lang.String getKind()
          Return the name of this class.
 int getSize()
          Return the number of candidate values execute() will provide.
 void setObjects(java.util.List<GraphObject> objects)
           
 
Methods inherited from class agg.util.csp.Query
activateCorrespondent, deactivateCorrespondent, getSource, getSourceInstance, getSources, getTarget, getWeight, isApplicable, isConstant, setCorrespondent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Query_Type

public Query_Type(java.util.List<GraphObject> objects,
                  Variable querytar)
Construct myself to be a constant query for the objects given in the parameter objects.

Method Detail

setObjects

public void setObjects(java.util.List<GraphObject> objects)

execute

public final java.util.Enumeration<?> execute()
Description copied from class: Query
Return an Enumeration of candidate values for the target variable.

Pre: isApplicable().

Specified by:
execute in class Query

getSize

public final int getSize()
Description copied from class: Query
Return the number of candidate values execute() will provide. For non-constant queries, this will most probably be based on estimation. The value may change in response to re-setting the CSP domains with the setDomain() method.

Pre: csp.getDomain() != null.

Specified by:
getSize in class Query
See Also:
CSP.setDomain(java.lang.Object)

getKind

public final java.lang.String getKind()
Return the name of this class.

Specified by:
getKind in class Query

getAvgOutgoingDegree

public final int getAvgOutgoingDegree()
Calculates the average degree of incoming arcs of all nodes in this type query.


getAvgIncomingDegree

public final int getAvgIncomingDegree()
all nodes in this type query.