|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gephi.io.generator.plugin.WattsStrogatz
public class WattsStrogatz
Field Summary | |
---|---|
protected boolean |
cancel
|
protected int |
numberOfNeighbors
|
protected int |
numberOfNodes
|
protected ProgressTicket |
progress
|
protected double |
rewiringProbability
|
Constructor Summary | |
---|---|
WattsStrogatz()
|
Method Summary | |
---|---|
boolean |
cancel()
Cancel the task. |
void |
generate(ContainerLoader container)
Main method that generates the graph and put it in the container. |
java.lang.String |
getName()
Returns the generator display name. |
int |
getNumberOfNeighbors()
|
int |
getNumberOfNodes()
|
double |
getRewiringProbability()
|
GeneratorUI |
getUI()
Returns the UI that belongs to this generator, or null if UI
is not needed. |
void |
setNumberOfNeighbors(int numberOfNeighbors)
|
void |
setNumberOfNodes(int numberOfNodes)
|
void |
setProgressTicket(ProgressTicket progressTicket)
Set the progress ticket for the long task. |
void |
setRewiringProbability(double rewiringProbability)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int numberOfNodes
protected int numberOfNeighbors
protected double rewiringProbability
protected ProgressTicket progress
protected boolean cancel
Constructor Detail |
---|
public WattsStrogatz()
Method Detail |
---|
public void generate(ContainerLoader container)
Generator
From the container content, the controller makes verification and append
the graph to GraphAPI
.
generate
in interface Generator
container
- the container the graph is to be pushedpublic int getNumberOfNeighbors()
public void setNumberOfNeighbors(int numberOfNeighbors)
public int getNumberOfNodes()
public void setNumberOfNodes(int numberOfNodes)
public double getRewiringProbability()
public void setRewiringProbability(double rewiringProbability)
public java.lang.String getName()
Generator
getName
in interface Generator
public GeneratorUI getUI()
Generator
null
if UI
is not needed.
getUI
in interface Generator
null
public boolean cancel()
LongTask
true
if the task has been sucessfully cancelled, false
otherwise.
cancel
in interface LongTask
true
if the task has been sucessfully cancelled, false
otherwisepublic void setProgressTicket(ProgressTicket progressTicket)
LongTask
setProgressTicket
in interface LongTask
progressTicket
- the progress ticket for this task
|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |