| 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 calledNoSuchItemSQLExceptionXMLStreamExceptionPollJig.count(PollService.VoteServerScope.Run)public TraceNode traceNode(NetworkTrace trace) throws NoSuchItem, SQLException
NullPointerException - if setUser() was not calledNoSuchItemSQLExceptionpublic void setUser(IDPair _user)
IllegalStateException - if the user identifier was already set.public byte dartSector()
PersondartSector in interface PersonCountNode.dartSector()public void setDartSector(CountNodeW countNode)
countNode(Count)public ResidenceJig residence()
Personpublic ResidenceJig setResidence()
public String username()
Personusername in interface PersonIDPair.username()public List<PersonJig> voteTrace()
PersonvoteTrace in interface PersonCountNodeW.trace()public void setVoteTrace(CountNodeW countNode) throws SQLException, XMLStreamException
SQLExceptionXMLStreamExceptioncountNode(Count)public List<PersonJig> voteTraceProjected()
PersonvoteTraceProjected in interface PersonCountNodeW.trace()public void serialize(com.google.gson.stream.JsonWriter out) throws IOException
SerialJigserialize in interface SerialJigIOException