org.metacsp.dispatching.DispatchingFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of meta-csp-framework Show documentation
Show all versions of meta-csp-framework Show documentation
A Java API for Meta-CSP based reasoning
package org.metacsp.dispatching;
import org.metacsp.framework.ConstraintNetwork;
import org.metacsp.multi.activity.SymbolicVariableActivity;
import org.metacsp.sensing.ConstraintNetworkAnimator;
public abstract class DispatchingFunction {
protected String component;
protected Dispatcher dis;
public DispatchingFunction(String component) {
this.component = component;
}
public void registerDispatcher(Dispatcher dis) {
this.dis = dis;
}
public String getComponent() { return component; }
public abstract void dispatch(SymbolicVariableActivity act);
public abstract boolean skip(SymbolicVariableActivity act);
public void finish(SymbolicVariableActivity ... acts) {
dis.finish(acts);
}
public ConstraintNetwork getConstraintNetwork() {
return dis.getConstraintNetwork();
}
public Dispatcher getDispatcher() {
return this.dis;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy