public abstract class TypedStructureAdapter extends Object implements TypedStructure, Comparable<TypedStructureAdapter>
| Constructor and Description |
|---|
TypedStructureAdapter()
Default-Ctor: Creating empty typed structure
|
TypedStructureAdapter(String name)
Initializes a structure of arity zero with the given name;
|
TypedStructureAdapter(String name,
int arity)
Initializes a structure with the given name and of the given arity.
|
TypedStructureAdapter(String name,
List<Sort> arguments)
Initializes a structure with the given name and the given list
of argument sorts.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addArgumentType(Sort argType)
Adds the given Sort as argument type to the typed Structure
|
abstract TypedStructure |
clone()
Creates a deep copy of this object
|
int |
compareTo(TypedStructureAdapter o) |
protected List<Sort> |
copyArgumentTypes() |
boolean |
equals(Object obj) |
List<Sort> |
getArgumentTypes() |
int |
getArity() |
String |
getName() |
int |
hashCode() |
boolean |
isComplete() |
boolean |
isTyped() |
Sort |
removeArgumentType(int index)
Removes the argument type at the specified index
|
boolean |
removeArgumentType(Sort argType)
Removes the given Sort from the list of argument types
|
void |
setArity(int arity)
Sets the arity of this structure
|
void |
setName(String name)
Changes the name of the Structure
|
String |
toString() |
public TypedStructureAdapter()
public TypedStructureAdapter(String name)
name - the name of the structurepublic TypedStructureAdapter(String name, int arity)
name - the name of the structurepublic String getName()
getName in interface TypedStructurepublic void setName(String name)
TypedStructuresetName in interface TypedStructurename - The new name of the structurepublic int getArity()
getArity in interface TypedStructurepublic void setArity(int arity)
TypedStructuresetArity in interface TypedStructurearity - the new aritypublic List<Sort> getArgumentTypes()
getArgumentTypes in interface TypedStructurepublic void addArgumentType(Sort argType)
TypedStructureaddArgumentType in interface TypedStructureargType - The Sort descibing the argument typepublic Sort removeArgumentType(int index)
TypedStructureremoveArgumentType in interface TypedStructureindex - The indexpublic boolean removeArgumentType(Sort argType)
TypedStructureremoveArgumentType in interface TypedStructureargType - The Sort which is removedpublic boolean isTyped()
isTyped in interface TypedStructurepublic boolean isComplete()
isComplete in interface TypedStructurepublic abstract TypedStructure clone()
TypedStructureclone in interface TypedStructureclone in class Objectpublic int compareTo(TypedStructureAdapter o)
compareTo in interface Comparable<TypedStructureAdapter>Copyright © 2018. All rights reserved.