TrustGrapher
r52
A playabale simulator for modelling trust between agents
|
Public Member Functions | |
AlgorithmLoader (TrustGrapher trustGrapher, PropertyManager config) | |
List< GraphConfig > | getGraphConfigs () |
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" |
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.
Definition at line 17 of file AlgorithmLoader.java.
cu.trustGrapher.loading.AlgorithmLoader.AlgorithmLoader | ( | TrustGrapher | trustGrapher, |
PropertyManager | config | ||
) |
Initializes the algorithm loader components
trustGrapher | The main class. Needed to inform it that the graphs have been loaded |
config | The properties manager to load all of the class and graph properties |
Definition at line 32 of file AlgorithmLoader.java.
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
index | The class index |
path | The path to the class file |
Definition at line 279 of file AlgorithmLoader.java.
List<GraphConfig> cu.trustGrapher.loading.AlgorithmLoader.getGraphConfigs | ( | ) |
Definition at line 73 of file AlgorithmLoader.java.
int cu.trustGrapher.loading.AlgorithmLoader.getVisibleGraphCount | ( | ) |
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
trustGrapher | Needed to pass the GraphConfigs to the TrustGrapher |
properties | The properties file to be used for saving the graph configurations |
Definition at line 268 of file AlgorithmLoader.java.
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.
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.
PropertyManager cu.trustGrapher.loading.AlgorithmLoader.config [protected] |
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.
final int cu.trustGrapher.loading.AlgorithmLoader.MAX_GRAPHS = 13 [static] |
Definition at line 19 of file AlgorithmLoader.java.
final int cu.trustGrapher.loading.AlgorithmLoader.MAX_VISIBLE = 6 [package] |
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.
Definition at line 23 of file AlgorithmLoader.java.