agg.xt_basis
Class Query_Outgoing

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

public class Query_Outgoing
extends Query


Field Summary
 
Fields inherited from class agg.util.csp.Query
itsWeight, typeNameOfVariable
 
Constructor Summary
Query_Outgoing(Variable obj, Variable tar)
          Construct myself to be a binary query for outgoing arcs of obj with abstraction abs.
 
Method Summary
 java.util.Enumeration<?> execute()
          Return an Enumeration of candidate values for the target variable.
 java.lang.String getKind()
          Return the name of this class.
 int getSize()
          Return the number of candidate values execute() will provide.
 
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_Outgoing

public Query_Outgoing(Variable obj,
                      Variable tar)
Construct myself to be a binary query for outgoing arcs of obj with abstraction abs.

Method Detail

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