package dlib; /* $Id: SmallSet.java 1.2 1996/09/10 02:03:30 ddyer Exp $ $Log: SmallSet.java $ Revision 1.2 1996/09/10 02:03:30 ddyer added list Revision 1.1 1996/09/07 13:06:00 ddyer Initial revision */ /** Implements a "small set" which maps an array of strings into an integer of bits, and prints itself in an intellegible way (instead of as an unintellegible integer). @author Dave Dyer @version 1.0, August 1996 */ public abstract class SmallSet extends BaseObject { public int value; public abstract String[] Elements(); /* constructors */ public SmallSet() {value=0;} public SmallSet(int val) { value = val; } public int Set_Indexof(String element) {String Elements[] = Elements(); for(int i=0; i