public enum XCastRelation extends Enum<XCastRelation>
( ) ( ) ( ) \ | / \ | / ( ) ( ) \ | / ( ) \ | \|/ \ \ | (v) \ \ | | \ \| | \ (v) | ( ) ( ) ( )-----( ) \ | | / | \ \ | | / | vote flow \ \ | | / V \ \ | |/ ( ) \ \| (o)-----( ) | ( )-----(o) (s) / ( ) | \ | / ( ) \ | \ | / | ( ) ( )( ) \| \ | / | / | / ( ) ( ) \|/ |/ |/ ( ) | \ ( ) (c) ( )----( ) ( ) \ | ( ) \ | \ ( ) / ( ) | \ | / \ | \ | / \ | ( ) \ | / \| \ | / \ | / \|/ ( ) \|/ ( ) \|/ ( ) \ ( )---( ) ( ) | ( ) ( ) \ / \ / | / \ / \ / |/ ( ) ( )------( )----( ) \ / \ / ( )---( )The scope may be limited to immediate votespace, as shown above, in which case the relation (if any) may be calculated soley from the votes of the two persons. Alternatively the scope may be extended upstream and downstream from the anchor, as illustrated in the extended relations below.
(v) (v) (v) \ | / \ | / (v) (v) \ | / ( ) \ | \|/ \ \ | (v) \ \ | | \ \| | \ (v) | ( ) ( ) ( )-----( ) \ | | / | \ \ | | / | vote flow \ \ | | / V \ \ | |/ ( ) \ \| (o)-----( ) | ( )-----(o) (s) / ( ) | \ | / ( ) \ | \ | / | ( ) ( )( ) \| \ | / | / | / ( ) ( ) \|/ |/ |/ ( ) | \ ( ) (c) ( )----( ) ( ) \ | ( ) \ | \ ( ) / ( ) | \ | / \ | \ | / \ | ( ) \ | / \| \ | / \ | / \|/ ( ) \|/ ( ) \|/ ( ) \ (c)---(c) ( ) | ( ) ( ) \ / \ / | / \ / \ / |/ (c) (c)------( )----( ) \ / \ / (c)---(c)If the anchor (s) is moved into the cycle at the base of the tree, then base co-candidate relations (b) also appear. The base co-candidates include both root candidates (left and right) and cyclers (center).
\ \ | | / \ \ | |/ ( ) \ \| (v)-----(v) | (v)-----(v) (v) / ( ) | \ | / (v) \ | \ | / | (v) ( )( ) \| \ | / | / | / ( ) ( ) \|/ |/ |/ ( ) | \ ( ) (v) (v)----(v) ( ) \ | ( ) \ | \ (v) / ( ) | \ | / \ | \ | / \ | ( ) \ | / \| \ | / \ | / \|/ ( ) \|/ ( ) \|/ (b) \ (b)---(s) (o) | ( ) (b) \ / \ / | / \ / \ / |/ (b) (b)------(o)----( ) \ / \ / (b)---(b) <---at most one relation applies for a person at any given moment. The person is never both a voter and a candidate to the anchor even in a tight cycle, but is rather a base co-candidate. A tight cycle is illustrated below, where the cast edges go left and right between the person (b) and the anchor (s).
(v) (v) (o) (v) | / (o) / \ | / | / \|/ --> |/ (s)=======(b)---(o) <--difference ordering and shadow lighting.
Enum Constant and Description |
---|
CANDIDATE
The person is a recipient of the anchor's vote and the anchor is not a base
candidate.
|
CO_BASE
Both the person and the anchor are base candidates.
|
CO_VOTER
Another candidate is the direct recipient of both the person's vote and
the anchor's vote.
|
SELF
The person and the anchor are the same.
|
UNKNOWN
The style symbol 'u' for the unknown cast relation.
|
VOTER
The anchor is a recipient of the person's vote and the person is not a base
candidate.
|
Modifier and Type | Method and Description |
---|---|
char |
symbol()
Returns the character symbol of the relation.
|
static XCastRelation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XCastRelation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XCastRelation SELF
public static final XCastRelation VOTER
public static final XCastRelation CO_VOTER
public static final XCastRelation CO_BASE
public static final XCastRelation CANDIDATE
public static final XCastRelation UNKNOWN
public static XCastRelation[] values()
for (XCastRelation c : XCastRelation.values()) System.out.println(c);
public static XCastRelation valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic char symbol()