TrustGrapher
r52
A playabale simulator for modelling trust between agents
|
Classes | |
class | ViewerListener |
Public Member Functions | |
TrustGrapher () | |
boolean | graphsLoaded () |
List< SimAbstractGraph > | getGraphs () |
Integer | getViewType () |
PropertyManager | getPropertyManager () |
List< GraphViewer > | getVisibleViewers () |
EventPlayer | getEventPlayer () |
TrustMenuBar | getTrustMenuBar () |
void | algorithmsLoaded (List< GraphConfig > graphConfigs) |
void | startAlgorithmLoader () |
void | enableMenu (boolean enabled) |
void | startGraph (List< TrustLogEvent > events) |
Static Public Member Functions | |
static void | main (String[] args) |
Static Public Attributes | |
static final int | CURRENT_REVISION = 52 |
static final int | TABBED = 0 |
static final int | DEFWIDTH = 1360 |
Protected Attributes | |
TrustMenuBar | menuBar |
List< GraphViewer > | viewers |
List< SimAbstractGraph > | graphs |
ViewerPopupMenu | popupMenu |
PropertyManager | config |
Container | graphsPanel |
EventPlayer | eventThread |
Package Attributes | |
static final int | GRID = 1 |
static final int | DEFHEIGHT = 768 |
An application that will display Trust Graphs generated from a series of feedback events. Multiple graphs can be viewed in different layouts and viewing modes The events can be "played" forward and backward, and the graphs will change to display their states after every tick
Definition at line 32 of file TrustGrapher.java.
cu.trustGrapher.TrustGrapher.TrustGrapher | ( | ) |
Creates and initializes TrustGrapher and its' frame and menu bar. The viewers are not yet created
Definition at line 49 of file TrustGrapher.java.
void cu.trustGrapher.TrustGrapher.algorithmsLoaded | ( | List< GraphConfig > | graphConfigs | ) |
Called by the AlgorithmLoader when the user clicks ok. If a log is already being simulated, pause the simulator. Then, build the graphs accoring to the graphConfigs, and then tell the logReader to begin loading the events.
Definition at line 135 of file TrustGrapher.java.
void cu.trustGrapher.TrustGrapher.enableMenu | ( | boolean | enabled | ) |
Enables or disables the menus in the menu bar
enabled | true for enabled, false for disabled |
Definition at line 165 of file TrustGrapher.java.
EventPlayer cu.trustGrapher.TrustGrapher.getEventPlayer | ( | ) |
Definition at line 114 of file TrustGrapher.java.
List<SimAbstractGraph> cu.trustGrapher.TrustGrapher.getGraphs | ( | ) |
Definition at line 73 of file TrustGrapher.java.
PropertyManager cu.trustGrapher.TrustGrapher.getPropertyManager | ( | ) |
Definition at line 94 of file TrustGrapher.java.
TrustMenuBar cu.trustGrapher.TrustGrapher.getTrustMenuBar | ( | ) |
Returns the TrustMenuBar for the simulation window. This is necessary despite the getJMenuBar method since there are important fields that must be accessed from the full class, not just the JMenuBar itself.
Definition at line 124 of file TrustGrapher.java.
Integer cu.trustGrapher.TrustGrapher.getViewType | ( | ) |
Returns the int representation of the graphsPanel view type. There can be a tabbed or grid view.
Definition at line 82 of file TrustGrapher.java.
List<GraphViewer> cu.trustGrapher.TrustGrapher.getVisibleViewers | ( | ) |
Returns a list of TrustGraphViewers that are visible If the view is a tabbed view, then returns the viewer that is in the selected tab If the view is in grid, then returns all of the viewers
Definition at line 104 of file TrustGrapher.java.
boolean cu.trustGrapher.TrustGrapher.graphsLoaded | ( | ) |
static void cu.trustGrapher.TrustGrapher.main | ( | String[] | args | ) | [static] |
to start this program as a java application
Definition at line 273 of file TrustGrapher.java.
void cu.trustGrapher.TrustGrapher.startAlgorithmLoader | ( | ) |
Creates a new AlgorithmLoader and runs it. After the user clicks ok, startGraph() will be called. In the meantime, the sumulator will be idle.
Definition at line 157 of file TrustGrapher.java.
void cu.trustGrapher.TrustGrapher.startGraph | ( | List< TrustLogEvent > | events | ) |
Called by the log reader thread upon completion, or by the EventPlayer upon an event modification, or the view type buttons in the menu bar when the view type is changed. This method resets the mainPane of the simulator window, and adds new TrustGraphViewers to the graphsPanel, then creates and starts a new EventPlayer.
events | The event list returned by the log reader thread or EventPlayer |
Definition at line 195 of file TrustGrapher.java.
PropertyManager cu.trustGrapher.TrustGrapher.config [protected] |
Definition at line 41 of file TrustGrapher.java.
final int cu.trustGrapher.TrustGrapher.CURRENT_REVISION = 52 [static] |
Definition at line 34 of file TrustGrapher.java.
final int cu.trustGrapher.TrustGrapher.DEFHEIGHT = 768 [package] |
Definition at line 36 of file TrustGrapher.java.
final int cu.trustGrapher.TrustGrapher.DEFWIDTH = 1360 [static] |
Definition at line 36 of file TrustGrapher.java.
EventPlayer cu.trustGrapher.TrustGrapher.eventThread [protected] |
Definition at line 43 of file TrustGrapher.java.
List<SimAbstractGraph> cu.trustGrapher.TrustGrapher.graphs [protected] |
Definition at line 39 of file TrustGrapher.java.
Container cu.trustGrapher.TrustGrapher.graphsPanel [protected] |
Definition at line 42 of file TrustGrapher.java.
final int cu.trustGrapher.TrustGrapher.GRID = 1 [package] |
Definition at line 35 of file TrustGrapher.java.
TrustMenuBar cu.trustGrapher.TrustGrapher.menuBar [protected] |
Definition at line 37 of file TrustGrapher.java.
ViewerPopupMenu cu.trustGrapher.TrustGrapher.popupMenu [protected] |
Definition at line 40 of file TrustGrapher.java.
final int cu.trustGrapher.TrustGrapher.TABBED = 0 [static] |
Definition at line 35 of file TrustGrapher.java.
List<GraphViewer> cu.trustGrapher.TrustGrapher.viewers [protected] |
Definition at line 38 of file TrustGrapher.java.