|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectTrustEdge.Table
@ThreadSafe public static final class TrustEdge.Table
The relational store of trust edges that (in part) backs a compiled voter list.
ListNodeC.Table| Constructor Summary | |
|---|---|
TrustEdge.Table(ReadyDirectory readyDirectory,
Database database)
Constructs a Table. |
|
| Method Summary | |
|---|---|
void |
create()
Creates this table in the database. |
(package private) Database |
database()
Returns the database in which this table is stored. |
void |
drop()
Drops this table from the database. |
boolean |
exists()
Returns true if this table exists in the database; false otherwise. |
List<TrustEdgeNode> |
getEdgeNodesTo(String voter1Email,
ListNodeC.Table listNodeTable)
Retrieves all edges extending to the specified destination node, together with their source nodes. |
(package private) List<TrustEdge> |
getEdgesFrom(String voter0Email)
Retrieves all edges that extend from the specified source voter. |
void |
init_bars(Register register,
ListNodeC.Table nodeTable)
For each trust edge in the table, calculate and store its edge-bar, if any. |
(package private) void |
put(TrustEdge edge)
Stores an edge in this table. |
(package private) ReadyDirectory |
readyDirectory()
The file-based counterpart to this table. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TrustEdge.Table(ReadyDirectory readyDirectory,
Database database)
throws IOException
readyDirectory - per readyDirectory()database - per database()
IOException| Method Detail |
|---|
public void init_bars(Register register,
ListNodeC.Table nodeTable)
throws ScriptException,
SQLException
nodeTable - containing all registered voters
ScriptException
SQLException
public void create()
throws SQLException
SQLExceptionDatabase database()
public void drop()
throws SQLException
SQLException
public boolean exists()
throws SQLException
SQLException
List<TrustEdge> getEdgesFrom(String voter0Email)
throws SQLException
SQLException
public List<TrustEdgeNode> getEdgeNodesTo(String voter1Email,
ListNodeC.Table listNodeTable)
throws SQLException
SQLExceptionvoid put(TrustEdge edge) throws SQLException
SQLExceptionReadyDirectory readyDirectory()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||