Package tools.refinery.logic.literal
Class RepresentativeElectionLiteral
java.lang.Object
tools.refinery.logic.literal.AbstractLiteral
tools.refinery.logic.literal.AbstractCallLiteral
tools.refinery.logic.literal.RepresentativeElectionLiteral
- All Implemented Interfaces:
Literal
-
Constructor Summary
ConstructorsConstructorDescriptionRepresentativeElectionLiteral(Connectivity connectivity, Constraint target, NodeVariable specific, NodeVariable representative) -
Method Summary
Modifier and TypeMethodDescriptionprotected LiteraldoSubstitute(Substitution substitution, List<Variable> substitutedArguments) booleanequalsWithSubstitution(LiteralEqualityHelper helper, Literal other) getInputVariables(Set<? extends Variable> positiveVariablesInClause) getPrivateVariables(Set<? extends Variable> positiveVariablesInClause) intreduce()toString()withArguments(Constraint newTarget, List<Variable> newArguments) Methods inherited from class tools.refinery.logic.literal.AbstractCallLiteral
getArguments, getArgumentsOfDirection, getTarget, substitute, withTargetMethods inherited from class tools.refinery.logic.literal.AbstractLiteral
equals, hashCode
-
Constructor Details
-
RepresentativeElectionLiteral
public RepresentativeElectionLiteral(Connectivity connectivity, Constraint target, NodeVariable specific, NodeVariable representative)
-
-
Method Details
-
getConnectivity
-
doSubstitute
- Specified by:
doSubstitutein classAbstractCallLiteral
-
getOutputVariables
-
getInputVariables
- Specified by:
getInputVariablesin interfaceLiteral- Overrides:
getInputVariablesin classAbstractCallLiteral
-
getPrivateVariables
- Specified by:
getPrivateVariablesin interfaceLiteral- Overrides:
getPrivateVariablesin classAbstractCallLiteral
-
reduce
-
withArguments
- Specified by:
withArgumentsin classAbstractCallLiteral
-
equalsWithSubstitution
- Specified by:
equalsWithSubstitutionin interfaceLiteral- Overrides:
equalsWithSubstitutionin classAbstractCallLiteral
-
hashCodeWithSubstitution
- Specified by:
hashCodeWithSubstitutionin interfaceLiteral- Overrides:
hashCodeWithSubstitutionin classAbstractCallLiteral
-
toString
-