Class PlPredicate
java.lang.Object
org.tweetyproject.logics.commons.syntax.TypedStructureAdapter
org.tweetyproject.logics.commons.syntax.Predicate
org.tweetyproject.logics.pl.syntax.PlPredicate
- All Implemented Interfaces:
Comparable<TypedStructureAdapter>
,TypedStructure
A specialized predicate for propositional logic that only allows an identifier
but has no arguments and therefore has an arity of zero.
- Author:
- Tim Janus
-
Constructor Summary
ConstructorDescriptionDefault-Ctor for dynamic instantiationPlPredicate
(String name) Ctor: Creates a new propositional predicate with the given name. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addArgumentType
(Sort argType) Adds the given Sort as argument type to the typed Structureclone()
Creates a deep copy of this objectMethods inherited from class org.tweetyproject.logics.commons.syntax.TypedStructureAdapter
compareTo, getArgumentTypes, getArity, getName, isComplete, isTyped, removeArgumentType, removeArgumentType, setName, toString
-
Constructor Details
-
PlPredicate
public PlPredicate()Default-Ctor for dynamic instantiation -
PlPredicate
Ctor: Creates a new propositional predicate with the given name.- Parameters:
name
- The name of the predicate
-
-
Method Details
-
addArgumentType
Description copied from interface:TypedStructure
Adds the given Sort as argument type to the typed Structure- Specified by:
addArgumentType
in interfaceTypedStructure
- Overrides:
addArgumentType
in classTypedStructureAdapter
- Parameters:
argType
- The Sort descibing the argument type
-
clone
Description copied from interface:TypedStructure
Creates a deep copy of this object- Specified by:
clone
in interfaceTypedStructure
- Overrides:
clone
in classPredicate
- Returns:
- A deep copy of this object
-