Package org.tweetyproject.commons
Class QuadrupleSetSignature<T,S,U,R>
java.lang.Object
org.tweetyproject.commons.QuadrupleSetSignature<T,S,U,R>
- Type Parameters:
T
- The types of formulas in this signature.S
- The types of formulas in this signature.U
- The types of formulas in this signature.R
- The types of formulas in this signature.
- Direct Known Subclasses:
FolSignature
This class models a signature as four sets of formulas.
- Author:
- Matthias Thimm, Anna Gessler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the given formulas to the signature.void
addAll
(Collection<?> c) Adds all elements of this collection to this signature.void
addSignature
(Signature other) Adds the elements of the given signature to this signature.void
clear()
Removes all elements of this signature.abstract QuadrupleSetSignature
<T, S, U, R> clone()
clones signatureboolean
int
hashCode()
boolean
isEmpty()
Returns true if this signature is empty.boolean
isOverlappingSignature
(Signature other) Checks whether this signature has common elements with the given signature, i.e.boolean
isSubSignature
(Signature other) Checks whether this signature is a sub-signature of the given signature, i.e.void
removeAll
(Collection<?> c) Removes all of this signature elements that are also contained in the specified collection (optional operation).toString()
-
Constructor Details
-
QuadrupleSetSignature
public QuadrupleSetSignature()Creates a new empty signature.
-
-
Method Details
-
isSubSignature
Description copied from interface:Signature
Checks whether this signature is a sub-signature of the given signature, i.e. whether each logical expression expressible with this signature is also expressible with the given signature.- Specified by:
isSubSignature
in interfaceSignature
- Parameters:
other
- a signature.- Returns:
- "true" iff this signature is a sub-signature of the given one.
-
isOverlappingSignature
Description copied from interface:Signature
Checks whether this signature has common elements with the given signature, i.e. whether there are logical expressions expressible with this signature that are also expressible with the given signature.- Specified by:
isOverlappingSignature
in interfaceSignature
- Parameters:
other
- a signature.- Returns:
- "true" iff this signature is overlapping with the given one.
-
addSignature
Description copied from interface:Signature
Adds the elements of the given signature to this signature.- Specified by:
addSignature
in interfaceSignature
- Parameters:
other
- a signature.
-
hashCode
-
equals
-
addAll
Description copied from interface:Signature
Adds all elements of this collection to this signature. -
add
Description copied from interface:Signature
Adds the given formulas to the signature.- Specified by:
add
in interfaceSignature
- Parameters:
objects
- some objects to be added- Throws:
IllegalArgumentException
-
isEmpty
-
removeAll
Description copied from interface:Signature
Removes all of this signature elements that are also contained in the specified collection (optional operation). After this call returns, this signature will contain no elements in common with the specified collection. -
clear
-
toString
-
clone
-