|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.graphstream.algorithm.community.Community
public class Community
Basic community class. Ensures that each created community object has a unique identifier throughout the simulation. This class also allows comparison and easy stringification of communities.
Constructor Summary | |
---|---|
Community()
New community instance with unique identifier. |
Method Summary | |
---|---|
int |
compareTo(Community o)
Comparison method for two Community objects, based on the value of their identfiers. |
boolean |
equals(Community c)
Tell if two Community objects are equal, based on their identifier. |
String |
getId()
Return the community identifier as a String. |
Integer |
id()
Return the community identifier. |
String |
toString()
Stringification method for Community object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Community()
Method Detail |
---|
public Integer id()
public String getId()
public boolean equals(Community c)
c
- The Community to compare to.
public String toString()
toString
in class Object
public int compareTo(Community o)
compareTo
in interface Comparable<Community>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |