votorola.a.register
Class VoterList

java.lang.Object
  extended by VoterList
All Implemented Interfaces:
Serializable

@ThreadSafe
public final class VoterList
extends Object
implements Serializable

A compiled list of voters from an electoral register.

See Also:
Serialized Form

Constructor Summary
VoterList(Register register, ReadyDirectory readyDirectory)
          Constructs a VoterList.
 
Method Summary
(package private)  void init(ListNodeC.Table listNodeTable, Neighbourhood.Table neighbourhoodTable, TrustEdge.Table trustEdgeTable)
           
 ListNodeC.Table listNodeTable()
          The relational store of voters that (in part) backs this list.
 Neighbourhood.Table neighbourhoodTable()
          The relational store of neighbourhoods that (in part) backs this list.
static VoterList readObjectFromMountedListFile(ReadyDirectory readyDirectory)
           
 ReadyDirectory readyDirectory()
          The file part of the backing for this list.
 String summaryDescription()
          A brief description of this list, in sentence form.
 TrustEdge.Table trustEdgeTable()
          The relational store of trust edges that (in part) backs this list.
(package private)  void writeObjectToMountedListFile()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VoterList

VoterList(Register register,
          ReadyDirectory readyDirectory)
Constructs a VoterList.

Parameters:
readyDirectory - per readyDirectory()
Method Detail

readObjectFromMountedListFile

public static VoterList readObjectFromMountedListFile(ReadyDirectory readyDirectory)
                                               throws IOException
Throws:
IOException
See Also:
writeObjectToMountedListFile()

writeObjectToMountedListFile

void writeObjectToMountedListFile()
                            throws IOException
Throws:
IOException
See Also:
readObjectFromMountedListFile(ReadyDirectory)

init

@ThreadRestricted(value="constructor")
void init(ListNodeC.Table listNodeTable,
                                Neighbourhood.Table neighbourhoodTable,
                                TrustEdge.Table trustEdgeTable)
See Also:
listNodeTable(), neighbourhoodTable(), trustEdgeTable()

listNodeTable

public ListNodeC.Table listNodeTable()
The relational store of voters that (in part) backs this list. It is a schema.table named "register-name.date-list_node-date", stored in the list database.

Returns:
reference to relational store; or null, if the list was not initialized with a reference
See Also:
Register.listDatabase(), init(ListNodeC.Table,Neighbourhood.Table,TrustEdge.Table)

neighbourhoodTable

public Neighbourhood.Table neighbourhoodTable()
The relational store of neighbourhoods that (in part) backs this list. It is a schema.table named "register-name.date-neighbourhood-date", stored in the list database.

Returns:
reference to relational store; or null, if the list was not initialized with a reference
See Also:
Register.listDatabase(), init(ListNodeC.Table,Neighbourhood.Table,TrustEdge.Table)

readyDirectory

public ReadyDirectory readyDirectory()
The file part of the backing for this list.


summaryDescription

public String summaryDescription()
A brief description of this list, in sentence form. It is intended for display, for example, as an introductory paragraph. It ordinarilly specifies the bar criteria for the list - minimum trust level, residency, and so forth.

See Also:
Register.ConfigurationContext.setListSummaryDescription(String)

trustEdgeTable

public TrustEdge.Table trustEdgeTable()
The relational store of trust edges that (in part) backs this list. It is a schema.table named "register-name.date-trust_edge-date", stored in the list database.

Returns:
reference to relational store; or null, if the list was not initialized with a reference
See Also:
Register.listDatabase(), init(ListNodeC.Table,Neighbourhood.Table,TrustEdge.Table)