rt

An obligatory Java Project
Log | Files | Refs | LICENSE

commit fa78f6350ef7578ed7f6042fe500cf40fa70c603
parent 2a9945589bf0c9e2180414197dd75d744ff34da6
Author: zerous Naveen Narayanan <zerous@nocebo.space>
Date:   Fri, 13 Dec 2019 01:18:17 +0100

Use a unique group id for identification

Diffstat:
Mgroup.java | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/group.java b/group.java @@ -7,11 +7,13 @@ public class group { private int nelem; private int cmet; // condition met flag - when set conditions are met private float tscr; + String gid; public group() { nelem = 0; cmet = 1; tscr = 0.0f; + gid = util.getAlphaNumString(); } public synchronized int add(acc m) { @@ -28,6 +30,10 @@ public class group { } return 0; } + + public String getGid() { + return gid; + } public synchronized int getNumMem() { return nelem;