|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiscovery.model.IDGenerator
public class IDGenerator
This class is responsible for generating unique ID numbers for components, connections and narratives. It contains three static methods, each of which return the next available integer that can be used as a unique ID for either a component, connection or narrative. The use of static methods means that no IDGenerator object needs to be instantiated by the class using the IDGenerator. The methods in this class are called by the constructor of components, connections and narratives when they are being newly created.
Constructor Summary | |
---|---|
IDGenerator()
|
Method Summary | |
---|---|
static int |
generateComponentID()
This method returns a unique integer ID number for a component model object. |
static int |
generateConnectionID()
This method returns a unique integer ID number for a connection model object. |
static int |
generateNarrativeID()
This method returns a unique integer ID number for a Narrative object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IDGenerator()
Method Detail |
---|
public static int generateComponentID()
public static int generateConnectionID()
public static int generateNarrativeID()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |