de.sciss.jcollider
Class NodeIDAllocator

java.lang.Object
  extended by de.sciss.jcollider.NodeIDAllocator

public class NodeIDAllocator
extends java.lang.Object

Quite a 1:1 translation from SClang, this is used as the default node allocator by the server.

Version:
0.31, 08-Oct-07
Author:
Hanns Holger Rutz
Todo:
allocPerm should be more generally available from other classes such as Synth and Group, because it can be vital to sound installation programming where the non-perm node count might well end up at the maximum value(?), should check if user-max should be one less because java ints are signed?!

Constructor Summary
NodeIDAllocator()
           
NodeIDAllocator(int user)
           
 
Method Summary
 int alloc()
           
 int allocPerm()
           
static int getUserMax()
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeIDAllocator

public NodeIDAllocator()

NodeIDAllocator

public NodeIDAllocator(int user)
Method Detail

reset

public void reset()

alloc

public int alloc()

allocPerm

public int allocPerm()

getUserMax

public static int getUserMax()