|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnz.ac.waikato.mcennis.rat.graph.model.ModelShell
nz.ac.waikato.mcennis.rat.graph.algorithm.transformToArray.DirectedTriplesHistogram
public class DirectedTriplesHistogram
Transforms a graph object (one mode and relation) into a 20 dimensional double
array describing a histogram of all triples of actors in the graph.
Links are classified in the following way:
Field Summary |
---|
Fields inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell |
---|
listener |
Constructor Summary | |
---|---|
DirectedTriplesHistogram()
|
Method Summary | |
---|---|
void |
DirectedTriplesHistogram()
|
void |
execute(Graph g)
execute the algorithm against the given graph |
InputDescriptor[] |
getInputType()
The input type describes all the different kinds of graph objects that are utilized (and hence required) by this object. |
protected java.util.TreeSet<Actor> |
getLinks(Graph g,
Actor v,
Actor comparator)
|
protected int |
getLinkType(Graph g,
Actor left,
Actor right)
|
OutputDescriptor[] |
getOutputType()
The output type describes all the different kinds of graph objects that are created during the execution of this algorithm. |
Parameter[] |
getParameter()
List of all parameters this component accepts. |
Parameter |
getParameter(java.lang.String param)
Returns the specific parameter identified by its key-name. |
SettableParameter[] |
getSettableParameter()
Returns settable (i.e. |
SettableParameter |
getSettableParameter(java.lang.String param)
Return the settable parameter namede by this key-name. |
void |
init(java.util.Properties map)
Parameters: name: name of this algorithm. |
protected int |
mapIndex(int first,
int second,
int third)
|
protected int |
twoSidesMap(int twoSide,
int oneSide)
|
Methods inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell |
---|
addListener, fireChange |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface nz.ac.waikato.mcennis.rat.graph.model.Model |
---|
addListener |
Constructor Detail |
---|
public DirectedTriplesHistogram()
Method Detail |
---|
public void DirectedTriplesHistogram()
public void execute(Graph g)
Algorithm
execute
in interface Algorithm
g
- graph to be modifiedprotected int mapIndex(int first, int second, int third)
protected int twoSidesMap(int twoSide, int oneSide)
protected int getLinkType(Graph g, Actor left, Actor right)
protected java.util.TreeSet<Actor> getLinks(Graph g, Actor v, Actor comparator)
public InputDescriptor[] getInputType()
Component
getInputType
in interface Component
InputDescriptor
public OutputDescriptor[] getOutputType()
Component
getOutputType
in interface Component
OutputDescriptor
public Parameter[] getParameter()
Component
getParameter
in interface Component
public Parameter getParameter(java.lang.String param)
Component
getParameter
in interface Component
param
- key-name of the parameter
public SettableParameter[] getSettableParameter()
Component
getSettableParameter
in interface Component
public SettableParameter getSettableParameter(java.lang.String param)
Component
getSettableParameter
in interface Component
param
- key-name of the parameter
public void init(java.util.Properties map)
init
in interface Component
map
- parameters to be loaded - may be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |