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
ConstructorDescriptionInitializes 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:
hashCode
in classTypedStructureAdapter
-
equals
- Overrides:
equals
in classTypedStructureAdapter
-
toString
- Overrides:
toString
in classTypedStructureAdapter
-
clone
Description copied from interface:TypedStructure
Creates a deep copy of this object- Specified by:
clone
in interfaceTypedStructure
- Specified by:
clone
in classTypedStructureAdapter
- Returns:
- A deep copy of this object
-