Class SerialisationEquivalenceByTransitionStateSequenceNaiv
java.lang.Object
org.tweetyproject.arg.dung.serialisibility.equivalence.SerialisationEquivalenceByTransitionStateSequenceNaiv
- All Implemented Interfaces:
Equivalence<Collection<TransitionStateSequence>>
public class SerialisationEquivalenceByTransitionStateSequenceNaiv
extends Object
implements Equivalence<Collection<TransitionStateSequence>>
This class represents an comparator, which defines if 2 sets of
TransitionStateSequences
are equivalent.
Those sets are deemed equivalent, if for each sequence
in one set there is an equivalent sequence
in the other set.Two single sequences
are expected to be equivalent if they consist of equivalent TransitionState
in a similar order (naive approach).- Version:
- TweetyProject 1.23
- Author:
- Julian Sander
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isEquivalent
(Collection<Collection<TransitionStateSequence>> objects) Checks whether the specified objects are equivalent, in a sense that every single object is equivalent to every other object in the setboolean
Checks whether the specified objects are equivalent
-
Constructor Details
-
SerialisationEquivalenceByTransitionStateSequenceNaiv
public SerialisationEquivalenceByTransitionStateSequenceNaiv()
-
-
Method Details
-
isEquivalent
public boolean isEquivalent(Collection<TransitionStateSequence> obj1, Collection<TransitionStateSequence> obj2) Description copied from interface:Equivalence
Checks whether the specified objects are equivalent- Specified by:
isEquivalent
in interfaceEquivalence<Collection<TransitionStateSequence>>
- Parameters:
obj1
- an object of the type-parameterobj2
- an object of the type-parameter- Returns:
- true if both theories are equivalent
-
isEquivalent
Description copied from interface:Equivalence
Checks whether the specified objects are equivalent, in a sense that every single object is equivalent to every other object in the set- Specified by:
isEquivalent
in interfaceEquivalence<Collection<TransitionStateSequence>>
- Parameters:
objects
- A collection of objects of the type-parameter- Returns:
- TRUE iff all objects are equivalent
-
getDescription
- Specified by:
getDescription
in interfaceEquivalence<Collection<TransitionStateSequence>>
- Returns:
- Description of the definition
-