Class Functor
java.lang.Object
org.tweetyproject.logics.commons.syntax.TypedStructureAdapter
org.tweetyproject.logics.commons.syntax.Functor
- All Implemented Interfaces:
Comparable<TypedStructureAdapter>,TypedStructure
A functor for logic language, i.e. an identifier for
functional terms.
- Author:
- Matthias Thimm, Tim Janus
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a functor of arity zero with the given name; the target sort is initialized to Sort.THING.Initializes a functor with the given name and of the given arity.Initializes a functor with the given name, the given list of argument sorts, and the given target sort. -
Method Summary
Methods inherited from class org.tweetyproject.logics.commons.syntax.TypedStructureAdapter
addArgumentType, compareTo, getArgumentTypes, getArity, getName, isComplete, isTyped, removeArgumentType, removeArgumentType, setName
-
Constructor Details
-
Functor
Initializes a functor of arity zero with the given name; the target sort is initialized to Sort.THING.- Parameters:
name- the name of the functor
-
Functor
Initializes a functor with the given name and of the given arity. Every argument and the target gets the sort Sort.THING.- Parameters:
name- the name of the functorarity- the arity of the functor
-
Functor
-
-
Method Details
-
getTargetSort
-
hashCode
public int hashCode()- Overrides:
hashCodein classTypedStructureAdapter
-
equals
- Overrides:
equalsin classTypedStructureAdapter
-
toString
- Overrides:
toStringin classTypedStructureAdapter
-
clone
Description copied from interface:TypedStructureCreates a deep copy of this object- Specified by:
clonein interfaceTypedStructure- Specified by:
clonein classTypedStructureAdapter- Returns:
- A deep copy of this object
-