Constructor and Description |
---|
PersonJig(BiteJig _bite)
Constructs a PersonJig.
|
Modifier and Type | Method and Description |
---|---|
CountNodeW |
countNode(Count count)
Fetches this person's count node and caches it for reuse.
|
byte |
dartSector()
This person's dart sector as last assigned by a count.
|
ResidenceJig |
residence()
This person's primary residence.
|
void |
serialize(com.google.gson.stream.JsonWriter out)
Serializes the fields of this object in JSON form, and clears them.
|
void |
setDartSector(CountNodeW countNode)
Sets the dart sector.
|
ResidenceJig |
setResidence()
Ensures the residence is set to a jig and caches the jig for reuse.
|
void |
setUser(IDPair _user)
Sets the user identifier.
|
void |
setVoteTrace(CountNodeW countNode)
Ensures the vote trace is set.
|
TraceNode |
traceNode(NetworkTrace trace)
Fetches this person's trace node and caches it for reuse.
|
IDPair |
user()
This person's user identifier, if it is known.
|
String |
username()
This person's username.
|
List<PersonJig> |
voteTrace()
This person's vote trace according to the results of last count, exclusive of any
subsequent user input.
|
List<PersonJig> |
voteTraceProjected()
An external trace projected from the voteTrace by including any subsequent input
from the user's (but not of other users); or null if the original vote trace is
unknown (null), or the user had no subsequent input.
|
public CountNodeW countNode(Count count) throws NoSuchItem, SQLException, XMLStreamException
NullPointerException
- if setUser() was not calledNoSuchItem
SQLException
XMLStreamException
PollJig.count(PollService.VoteServerScope.Run)
public TraceNode traceNode(NetworkTrace trace) throws NoSuchItem, SQLException
NullPointerException
- if setUser() was not calledNoSuchItem
SQLException
public void setUser(IDPair _user)
IllegalStateException
- if the user identifier was already set.public byte dartSector()
Person
dartSector
in interface Person
CountNode.dartSector()
public void setDartSector(CountNodeW countNode)
countNode(Count)
public ResidenceJig residence()
Person
public ResidenceJig setResidence()
public String username()
Person
username
in interface Person
IDPair.username()
public List<PersonJig> voteTrace()
Person
voteTrace
in interface Person
CountNodeW.trace()
public void setVoteTrace(CountNodeW countNode) throws SQLException, XMLStreamException
SQLException
XMLStreamException
countNode(Count)
public List<PersonJig> voteTraceProjected()
Person
voteTraceProjected
in interface Person
CountNodeW.trace()
public void serialize(com.google.gson.stream.JsonWriter out) throws IOException
SerialJig
serialize
in interface SerialJig
IOException