TrustGrapher  r52
A playabale simulator for modelling trust between agents
cu.trustGrapher.TrustGrapher Class Reference
Collaboration diagram for cu.trustGrapher.TrustGrapher:

List of all members.

Classes

class  ViewerListener

Public Member Functions

 TrustGrapher ()
boolean graphsLoaded ()
List< SimAbstractGraphgetGraphs ()
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< SimAbstractGraphgraphs
ViewerPopupMenu popupMenu
PropertyManager config
Container graphsPanel
EventPlayer eventThread

Package Attributes

static final int GRID = 1
static final int DEFHEIGHT = 768

Detailed Description

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

Author:
Alan
Matt
Andrew O'Hara

Definition at line 32 of file TrustGrapher.java.


Constructor & Destructor Documentation

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.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Function Documentation

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.

Here is the call graph for this function:

void cu.trustGrapher.TrustGrapher.enableMenu ( boolean  enabled)

Enables or disables the menus in the menu bar

Parameters:
enabledtrue for enabled, false for disabled

Definition at line 165 of file TrustGrapher.java.

Here is the caller graph for this function:

EventPlayer cu.trustGrapher.TrustGrapher.getEventPlayer ( )

Definition at line 114 of file TrustGrapher.java.

List<SimAbstractGraph> cu.trustGrapher.TrustGrapher.getGraphs ( )
Returns:
Returns the list of graphs

Definition at line 73 of file TrustGrapher.java.

Here is the caller graph for this function:

PropertyManager cu.trustGrapher.TrustGrapher.getPropertyManager ( )
Returns:
Returns the propertyManager

Definition at line 94 of file TrustGrapher.java.

Here is the caller graph for this function:

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.

Returns:
the TrustMenuBar class for the TrustGrapher simulation window

Definition at line 124 of file TrustGrapher.java.

Here is the caller graph for this function:

Integer cu.trustGrapher.TrustGrapher.getViewType ( )

Returns the int representation of the graphsPanel view type. There can be a tabbed or grid view.

Returns:
the view type of the graphsPanel

Definition at line 82 of file TrustGrapher.java.

Here is the caller graph for this function:

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

Returns:
The visible TrustGraphViewers

Definition at line 104 of file TrustGrapher.java.

Here is the caller graph for this function:

boolean cu.trustGrapher.TrustGrapher.graphsLoaded ( )

Definition at line 66 of file TrustGrapher.java.

Here is the caller graph for this function:

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.

Here is the call graph for this function:

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.

Here is the caller graph for this function:

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.

Parameters:
eventsThe event list returned by the log reader thread or EventPlayer

Definition at line 195 of file TrustGrapher.java.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

PropertyManager cu.trustGrapher.TrustGrapher.config [protected]

Definition at line 41 of file TrustGrapher.java.

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.

Definition at line 39 of file TrustGrapher.java.

Definition at line 42 of file TrustGrapher.java.

final int cu.trustGrapher.TrustGrapher.GRID = 1 [package]

Definition at line 35 of file TrustGrapher.java.

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.


The documentation for this class was generated from the following file: