All Downloads are FREE. Search and download functionalities are using the official Maven repository.

astra.formula.FormulaVariable Maven / Gradle / Ivy

There is a newer version: 1.4.2
Show newest version
package astra.formula;

import astra.reasoner.util.LogicVisitor;
import astra.term.Variable;

public class FormulaVariable implements Formula {
	/**
	 *
	 */
	private static final long serialVersionUID = -4450140522918473556L;
	
	private Variable variable;
	private Formula value;
	
	public FormulaVariable(Variable variable) {
		this.variable = variable;
	}

	public Object accept(LogicVisitor visitor) {
		return visitor.visit(this);
	}

	public Variable variable() {
		return variable;
	}
	
	public Formula value() {
		return value;
	}
	
	public void value(Formula value) {
		this.value = value;
	}

	public boolean matches(Formula formula) {
		throw new UnsupportedOperationException("Should not get this");
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy