public class Policy extends EncodingStrategyAdapter
Constructor and Description |
---|
Policy() |
addAtLeastOne, addAtMostOne, addExactlyOne
public EncodingStrategyAdapter getAtMostOneEncoding()
public void setAtMostOneEncoding(EncodingStrategyAdapter atMostOneEncoding)
public void setAtMostOneEncoding(EncodingStrategy atMostOneEncoding)
public EncodingStrategyAdapter getAtMostKEncoding()
public void setAtMostKEncoding(EncodingStrategyAdapter atMostKEncoding)
public void setAtMostKEncoding(EncodingStrategy atMostKEncoding)
public EncodingStrategyAdapter getExactlyOneEncoding()
public void setExactlyOneEncoding(EncodingStrategyAdapter exactlyOneEncoding)
public void setExactlyOneEncoding(EncodingStrategy exactlyOneEncoding)
public EncodingStrategyAdapter getExactlyKEncoding()
public void setExactlyKEncoding(EncodingStrategyAdapter exactlyKEncoding)
public void setExactlyKEncoding(EncodingStrategy exactlyKEncoding)
public EncodingStrategyAdapter getAtLeastOneEncoding()
public void setAtLeastOneEncoding(EncodingStrategyAdapter atLeastOneEncoding)
public void setAtLeastOneEncoding(EncodingStrategy atLeastOneEncoding)
public EncodingStrategyAdapter getAtLeastKEncoding()
public void setAtLeastKEncoding(EncodingStrategyAdapter atLeastKEncoding)
public void setAtLeastKEncoding(EncodingStrategy atLeastKEncoding)
public IConstr addAtMost(ISolver solver, IVecInt literals, int k) throws ContradictionException
addAtMost
in class EncodingStrategyAdapter
ContradictionException
public IConstr addExactly(ISolver solver, IVecInt literals, int n) throws ContradictionException
addExactly
in class EncodingStrategyAdapter
ContradictionException
public IConstr addAtLeast(ISolver solver, IVecInt literals, int n) throws ContradictionException
addAtLeast
in class EncodingStrategyAdapter
ContradictionException
public String toString()
toString
in class EncodingStrategyAdapter
Copyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.