agg.xt_basis
Class Constraint_Source

java.lang.Object
  extended by agg.util.csp.BinaryConstraint
      extended by agg.xt_basis.Constraint_Source

public class Constraint_Source
extends BinaryConstraint


Field Summary
 
Fields inherited from class agg.util.csp.BinaryConstraint
itsVar1, itsVar2, itsWeight
 
Constructor Summary
Constraint_Source(Variable src, Variable arc)
           
 
Method Summary
 void clear()
           
 boolean execute()
          Return true iff the current instance of src is the source object of the instance of arc.
 
Methods inherited from class agg.util.csp.BinaryConstraint
activate, deactivate, getCause, getVar1, getVar2, getWeight, isApplicable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Constraint_Source

public Constraint_Source(Variable src,
                         Variable arc)
Method Detail

clear

public void clear()
Specified by:
clear in class BinaryConstraint

execute

public final boolean execute()
Return true iff the current instance of src is the source object of the instance of arc.

Pre: (1) src.getInstance(), arc.getInstance() instanceof GraphObject.

Specified by:
execute in class BinaryConstraint