Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## it.unitn.ds.peersim.utils
Class IDGenerator

    java.lang.Object
      it.unitn.ds.peersim.utils.IDGenerator

    public class IDGenerator

extends java.lang.Object

Distributed Systems Course Project

Year: 2009/2010

University of Trento

IDGenerator -. Generates an unique id used in the messages.

Version:
  1.0
Author:
  Avancini Mattia, Giampaolo Farina

Method Summary
`static IDGenerator` | `getInstance()` Gets the single instance of IDGenerator.
`int` | `nextID()` Next id.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### getInstance

    public static IDGenerator getInstance()

  Gets the single instance of IDGenerator.

  Returns:
    single instance of IDGenerator

### nextID

    public int nextID()

  Next id.

  Returns:
    the int

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD