Interface ImmutableAntiSymmetricPreference
-
- All Superinterfaces:
AntiSymmetricPreference
,ImmutablePreference
,Preference
- All Known Implementing Classes:
ImmutableAntiSymmetricPreferenceImpl
public interface ImmutableAntiSymmetricPreference extends ImmutablePreference, AntiSymmetricPreference
An immutable antisymmetric preference is an antisymmetric preference (without equal alternatives) we can't modify.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImmutableGraph<Alternative>
asGraph()
In the graph : a relation from a to b means "a is at least as good as b".-
Methods inherited from interface io.github.oliviercailloux.j_voting.preferences.ImmutablePreference
getAlternatives
-
Methods inherited from interface io.github.oliviercailloux.j_voting.preferences.Preference
getVoter
-
-
-
-
Method Detail
-
asGraph
ImmutableGraph<Alternative> asGraph()
In the graph : a relation from a to b means "a is at least as good as b". This graph can’t be modified, but is not necessarily immutable. Reflexive and transitive. This graph is immutable. This graph is antisymmetric.- Specified by:
asGraph
in interfaceAntiSymmetricPreference
- Specified by:
asGraph
in interfaceImmutablePreference
- Specified by:
asGraph
in interfacePreference
- Returns:
- the Graph corresponding to the Preference.
-
-