TrustGrapher
r52
A playabale simulator for modelling trust between agents
|
Public Member Functions | |
GraphConfig (int index, boolean display, int base, int classIndex, String classPath, File propertyFile) | |
String | toString () |
int | getIndex () |
String | getKey () |
int | getBaseIndex () |
File | getClassFile () |
String | getDisplayName () |
boolean | isDisplayed () |
Object | getAlgorithm () |
File | getProperties () |
boolean | isFeedbackGraph () |
boolean | isReputationGraph () |
boolean | isTrustGraph () |
void | setBase (int base) |
final void | setProperties (File propertyFile) |
void | setDisplay (boolean display) |
Static Public Member Functions | |
static Object | newAlgorithm (String classPath) |
Static Public Attributes | |
static String | NO_BASE = "noBase" |
Protected Attributes | |
Object | algorithm |
PropertyManager | properties |
Package Attributes | |
static String | NO_CONFIG = "noConfig" |
static String | NO_CLASS = "noClass" |
int | base |
int | classIndex |
Contains all of the configurations for a graph. Instances of this class are used to create the GraphViewers and graphs. GraphConfigs are generated by the AlgorithmLoader when a graph is added.
Definition at line 16 of file GraphConfig.java.
cu.trustGrapher.loading.GraphConfig.GraphConfig | ( | int | index, |
boolean | display, | ||
int | base, | ||
int | classIndex, | ||
String | classPath, | ||
File | propertyFile | ||
) |
Creates a new GraphConfig.
index | The index for the GraphConfig automatically assigned by the AlgorithmLoader |
display | Whether or not the graphPair is to be shown in the simulator |
base | The index of the graphConfig that this graph depends on |
classpath | The path to the algorithm class that this graph will use. The feedbackHistory is set to NO_CLASS |
propertyFile | The optional property file that contains the configurations for this algorithm |
Definition at line 34 of file GraphConfig.java.
Object cu.trustGrapher.loading.GraphConfig.getAlgorithm | ( | ) |
Definition at line 105 of file GraphConfig.java.
int cu.trustGrapher.loading.GraphConfig.getBaseIndex | ( | ) |
Definition at line 77 of file GraphConfig.java.
File cu.trustGrapher.loading.GraphConfig.getClassFile | ( | ) |
Definition at line 84 of file GraphConfig.java.
String cu.trustGrapher.loading.GraphConfig.getDisplayName | ( | ) |
Definition at line 91 of file GraphConfig.java.
int cu.trustGrapher.loading.GraphConfig.getIndex | ( | ) |
Definition at line 66 of file GraphConfig.java.
String cu.trustGrapher.loading.GraphConfig.getKey | ( | ) |
Definition at line 70 of file GraphConfig.java.
File cu.trustGrapher.loading.GraphConfig.getProperties | ( | ) |
Definition at line 112 of file GraphConfig.java.
boolean cu.trustGrapher.loading.GraphConfig.isDisplayed | ( | ) |
Definition at line 98 of file GraphConfig.java.
boolean cu.trustGrapher.loading.GraphConfig.isFeedbackGraph | ( | ) |
Definition at line 119 of file GraphConfig.java.
boolean cu.trustGrapher.loading.GraphConfig.isReputationGraph | ( | ) |
Definition at line 126 of file GraphConfig.java.
boolean cu.trustGrapher.loading.GraphConfig.isTrustGraph | ( | ) |
Definition at line 133 of file GraphConfig.java.
static Object cu.trustGrapher.loading.GraphConfig.newAlgorithm | ( | String | classPath | ) | [static] |
Takes a path and tries to load an object from it. If it is a valid algorithm, it returns it as an Object.
classPath | The path to the algorithm class file |
Definition at line 170 of file GraphConfig.java.
void cu.trustGrapher.loading.GraphConfig.setBase | ( | int | base | ) |
baseIndex | The new index of the graph that this graph will depend on |
Definition at line 142 of file GraphConfig.java.
void cu.trustGrapher.loading.GraphConfig.setDisplay | ( | boolean | display | ) |
display | Whether or not the graph represented by this will be displayed in the Simulator |
Definition at line 160 of file GraphConfig.java.
final void cu.trustGrapher.loading.GraphConfig.setProperties | ( | File | propertyFile | ) |
propertyFile | the configFile to set |
Definition at line 149 of file GraphConfig.java.
String cu.trustGrapher.loading.GraphConfig.toString | ( | ) |
Returns the string representation of this GraphConfig that is saved the the properties file. This String can then be used to create an equivalent GraphConfig.
Definition at line 56 of file GraphConfig.java.
Object cu.trustGrapher.loading.GraphConfig.algorithm [protected] |
Definition at line 22 of file GraphConfig.java.
int cu.trustGrapher.loading.GraphConfig.base [package] |
Definition at line 20 of file GraphConfig.java.
int cu.trustGrapher.loading.GraphConfig.classIndex [package] |
Definition at line 20 of file GraphConfig.java.
String cu.trustGrapher.loading.GraphConfig.NO_BASE = "noBase" [static] |
Definition at line 18 of file GraphConfig.java.
String cu.trustGrapher.loading.GraphConfig.NO_CLASS = "noClass" [package] |
Definition at line 18 of file GraphConfig.java.
String cu.trustGrapher.loading.GraphConfig.NO_CONFIG = "noConfig" [package] |
Definition at line 18 of file GraphConfig.java.
PropertyManager cu.trustGrapher.loading.GraphConfig.properties [protected] |
Definition at line 23 of file GraphConfig.java.