|
|||||||||
| 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.GeodesicProperties
public class GeodesicProperties
Calculates properties of a node:
(In/Out) Eccentricity - Wasserman and Faust p111 - modified for directional links
Diameter - Wasserman and Faust p111. Modified to be longest non-infinite
geodesic path, eliminating infinite diameters.
Wasserman, S., and K. Faust. 1997. Social Network Analysis. New York: Cambridge University Press.
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Fields inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell |
|---|
listener |
| Constructor Summary | |
|---|---|
GeodesicProperties()
Creates a new instance of AddGeodesicProperties |
|
| Method Summary | |
|---|---|
protected void |
addDiameter(Graph g)
Diamter defined as the longest geodesic path. |
protected void |
addInEccentricity(Graph g,
ActorQuery mode)
|
protected void |
addOutEccentricity(Graph g,
ActorQuery mode)
|
void |
execute(Graph g)
Calculates properties of a node: (In/Out) Eccentricity - Wasserman and Faust p111 - modified for directional links Diameter - Wasserman and Faust p111. |
java.util.List<IODescriptor> |
getInputType()
The input type describes all the different kinds of graph objects that are utilized (and hence required) by this object. |
java.util.List<IODescriptor> |
getOutputType()
The output type describes all the different kinds of graph objects that are created during the execution of this algorithm. |
Properties |
getParameter()
List of all parameters this component accepts. |
Parameter |
getParameter(java.lang.String param)
Returns the specific parameter identified by its key-name. |
void |
init(Properties map)
Parameters for initialization of this algorithm 'name' - name of this isntance. |
GeodesicProperties |
prototype()
All Components implement the prototype pattern. |
| 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 |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public GeodesicProperties()
| Method Detail |
|---|
public void execute(Graph g)
execute in interface Algorithmg - graph to be modified
protected void addInEccentricity(Graph g,
ActorQuery mode)
protected void addOutEccentricity(Graph g,
ActorQuery mode)
protected void addDiameter(Graph g)
g - graph to be modifiedpublic java.util.List<IODescriptor> getInputType()
Component
getInputType in interface ComponentIODescriptorpublic java.util.List<IODescriptor> getOutputType()
Component
getOutputType in interface ComponentIODescriptorpublic Properties getParameter()
Component
getParameter in interface Componentpublic Parameter getParameter(java.lang.String param)
Component
getParameter in interface Componentparam - key-name of the parameter
public void init(Properties map)
init in interface Componentmap - map of the given properties naming parameters and their values in a stringpublic GeodesicProperties prototype()
Component
prototype in interface Componentprototype in interface Algorithm
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||