Package net.sf.tweety.beliefdynamics
Class DefaultBaseExpansionOperator<T extends net.sf.tweety.commons.Formula>
- java.lang.Object
-
- net.sf.tweety.beliefdynamics.DefaultBaseExpansionOperator<T>
-
- Type Parameters:
T- The type of formulas that this operator works on.
- All Implemented Interfaces:
BaseExpansionOperator<T>
public class DefaultBaseExpansionOperator<T extends net.sf.tweety.commons.Formula> extends Object implements BaseExpansionOperator<T>
This class implements the default base expansion operator, ie. an operator that returns the union of a set of formulas and a formula.- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description DefaultBaseExpansionOperator()
-
Method Summary
Modifier and Type Method Description Collection<T>expand(Collection<T> base, T formula)Expands the given collection of formulas by the given formula.
-
-
-
Method Detail
-
expand
public Collection<T> expand(Collection<T> base, T formula)
Description copied from interface:BaseExpansionOperatorExpands the given collection of formulas by the given formula.- Specified by:
expandin interfaceBaseExpansionOperator<T extends net.sf.tweety.commons.Formula>- Parameters:
base- some collection of formulas.formula- a formula- Returns:
- the expanded collection.
-
-