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

List of all members.

Public Member Functions

 AlgorithmLoader (TrustGrapher trustGrapher, PropertyManager config)
List< GraphConfiggetGraphConfigs ()
int getVisibleGraphCount ()
void start ()

Static Public Member Functions

static void run (TrustGrapher trustGrapher, PropertyManager properties)
static String formatClassName (int index, String path)

Static Public Attributes

static final int MAX_GRAPHS = 13
static final String GRAPH = "graph"
static final String LOG_PATH = "logPath"

Protected Attributes

PropertyManager config
TrustGrapher trustGrapher

Package Attributes

static final int MAX_VISIBLE = 6
static final String CLASS = "class"
static final String CLASS_PATH = "classPath"
static final String PROPERTY_PATH = "propertyPath"

Detailed Description

An options window which allows the user to choose which algorithms to load, and which graphs to display. The session properties of the graphs are stored in GraphConfig objects.

Author:
Andrew O'Hara

Definition at line 17 of file AlgorithmLoader.java.


Constructor & Destructor Documentation

cu.trustGrapher.loading.AlgorithmLoader.AlgorithmLoader ( TrustGrapher  trustGrapher,
PropertyManager  config 
)

Initializes the algorithm loader components

Parameters:
trustGrapherThe main class. Needed to inform it that the graphs have been loaded
configThe properties manager to load all of the class and graph properties

Definition at line 32 of file AlgorithmLoader.java.

Here is the caller graph for this function:


Member Function Documentation

static String cu.trustGrapher.loading.AlgorithmLoader.formatClassName ( int  index,
String  path 
) [static]

Takes a classPath and the class index and turns it into an easily readable name

Parameters:
indexThe class index
pathThe path to the class file
Returns:
A display name for the class

Definition at line 279 of file AlgorithmLoader.java.

List<GraphConfig> cu.trustGrapher.loading.AlgorithmLoader.getGraphConfigs ( )
Returns:
The list of GraphConfigs

Definition at line 73 of file AlgorithmLoader.java.

int cu.trustGrapher.loading.AlgorithmLoader.getVisibleGraphCount ( )
Returns:
Returns the number of graphs that are set to visible

Definition at line 122 of file AlgorithmLoader.java.

static void cu.trustGrapher.loading.AlgorithmLoader.run ( TrustGrapher  trustGrapher,
PropertyManager  properties 
) [static]

Creates and starts the AlgorithmLoader. Once the AlgorithmLoader ok button is pressed, the TrustGrapher algorithmLoaded() method will be called

Parameters:
trustGrapherNeeded to pass the GraphConfigs to the TrustGrapher
propertiesThe properties file to be used for saving the graph configurations

Definition at line 268 of file AlgorithmLoader.java.

Here is the call graph for this function:

void cu.trustGrapher.loading.AlgorithmLoader.start ( )

This is called by the TrustGrapher. It displays the algorithm loader window, loads all of the properties from the properties file, and then updates the window

Definition at line 223 of file AlgorithmLoader.java.

Here is the caller graph for this function:


Member Data Documentation

final String cu.trustGrapher.loading.AlgorithmLoader.CLASS = "class" [package]

Definition at line 20 of file AlgorithmLoader.java.

final String cu.trustGrapher.loading.AlgorithmLoader.CLASS_PATH = "classPath" [package]

Definition at line 21 of file AlgorithmLoader.java.

Definition at line 22 of file AlgorithmLoader.java.

final String cu.trustGrapher.loading.AlgorithmLoader.GRAPH = "graph" [static]

Definition at line 20 of file AlgorithmLoader.java.

final String cu.trustGrapher.loading.AlgorithmLoader.LOG_PATH = "logPath" [static]

Definition at line 21 of file AlgorithmLoader.java.

Definition at line 19 of file AlgorithmLoader.java.

Definition at line 19 of file AlgorithmLoader.java.

final String cu.trustGrapher.loading.AlgorithmLoader.PROPERTY_PATH = "propertyPath" [package]

Definition at line 21 of file AlgorithmLoader.java.


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