Conclusio implementieren

This commit is contained in:
Johanna Stuber 2021-01-27 10:55:17 +01:00
parent 8663fb3b66
commit 06492723eb

View File

@ -13,6 +13,10 @@ import java.util.Map;
*/ */
public class Conclusion { public class Conclusion {
private final Map<VarTerm, TypeAbstraction> typeAssumptions;
private final LambdaTerm lambdaTerm;
private final Type type;
/** /**
* Initializes a new Conclusion with the given type assumptions, lambda term and type. * Initializes a new Conclusion with the given type assumptions, lambda term and type.
* *
@ -21,30 +25,30 @@ public class Conclusion {
* @param type the type assigned to the lambda term in the conclusion * @param type the type assigned to the lambda term in the conclusion
*/ */
protected Conclusion(Map<VarTerm, TypeAbstraction> typeAssumptions, LambdaTerm lambdaTerm, Type type) { protected Conclusion(Map<VarTerm, TypeAbstraction> typeAssumptions, LambdaTerm lambdaTerm, Type type) {
// TODO // TODO: null checks?
this.typeAssumptions = typeAssumptions;
this.lambdaTerm = lambdaTerm;
this.type = type;
} }
/** /**
* @return the type assumptions used in the conclusion * @return the type assumptions used in the conclusion
*/ */
public Map<VarTerm, TypeAbstraction> getTypeAssumptions() { public Map<VarTerm, TypeAbstraction> getTypeAssumptions() {
return null; return typeAssumptions;
// TODO
} }
/** /**
* @return the lambda term in the conclusion * @return the lambda term in the conclusion
*/ */
public LambdaTerm getLambdaTerm() { public LambdaTerm getLambdaTerm() {
return null; return lambdaTerm;
// TODO
} }
/** /**
* @return the type assigned to the lambda term in the conclusion * @return the type assigned to the lambda term in the conclusion
*/ */
public Type getType() { public Type getType() {
return null; return type;
// TODO
} }
} }