Back to index

wims  3.65+svn20090927
Public Member Functions | Static Public Member Functions | Package Attributes | Static Package Attributes
rene.zirkel.construction.Count Class Reference

This is used to generate unique numbers for construction objects. More...

Collaboration diagram for rene.zirkel.construction.Count:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Count ()
synchronized int next ()
synchronized void reset ()
synchronized void setAlternate (boolean flag)
synchronized void fix (boolean flag)

Static Public Member Functions

static synchronized void resetAll ()
static synchronized void setAllAlternate (boolean flag)
static synchronized void fixAll (boolean flag)

Package Attributes

int N
int BackupN
boolean Fixed = false

Static Package Attributes

static Vector Counts = new Vector()

Detailed Description

This is used to generate unique numbers for construction objects.

Instances will be static in their classes. There is also an alternative count, which can be used for macro generation.

Definition at line 11 of file Count.java.


Constructor & Destructor Documentation

Definition at line 15 of file Count.java.

       {      reset();
              Counts.addElement(this);
       }

Here is the call graph for this function:


Member Function Documentation

synchronized void rene.zirkel.construction.Count.fix ( boolean  flag) [inline]

Definition at line 40 of file Count.java.

       {      Fixed=flag;
       }

Here is the caller graph for this function:

static synchronized void rene.zirkel.construction.Count.fixAll ( boolean  flag) [inline, static]

Definition at line 43 of file Count.java.

       {      Enumeration e=Counts.elements();
              while (e.hasMoreElements())
                     ((Count)e.nextElement()).fix(flag);
       }

Here is the call graph for this function:

synchronized int rene.zirkel.construction.Count.next ( ) [inline]

Definition at line 19 of file Count.java.

       {      if (Fixed) return 0;
              N++; return N;
       }

Here is the caller graph for this function:

synchronized void rene.zirkel.construction.Count.reset ( ) [inline]

Definition at line 23 of file Count.java.

       {      N=0;
       }

Here is the caller graph for this function:

static synchronized void rene.zirkel.construction.Count.resetAll ( ) [inline, static]

Definition at line 30 of file Count.java.

       {      Enumeration e=Counts.elements();
              while (e.hasMoreElements())
                     ((Count)e.nextElement()).reset();
       }

Here is the call graph for this function:

static synchronized void rene.zirkel.construction.Count.setAllAlternate ( boolean  flag) [inline, static]

Definition at line 35 of file Count.java.

       {      Enumeration e=Counts.elements();
              while (e.hasMoreElements())
                     ((Count)e.nextElement()).setAlternate(flag);
       }

Here is the call graph for this function:

synchronized void rene.zirkel.construction.Count.setAlternate ( boolean  flag) [inline]

Definition at line 26 of file Count.java.

       {      if (flag) { BackupN=N; N=0; }
              else N=BackupN;
       }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 13 of file Count.java.

Vector rene.zirkel.construction.Count.Counts = new Vector() [static, package]

Definition at line 12 of file Count.java.

Definition at line 14 of file Count.java.

Definition at line 13 of file Count.java.


The documentation for this class was generated from the following file: