sdsi
Class Threshold

java.lang.Object
  |
  +--sdsi.SDSIObject
        |
        +--sdsi.Threshold
All Implemented Interfaces:
java.io.Serializable, Subject

public class Threshold
extends SDSIObject
implements Subject

Author:
Alexander Morcos, Sameer Ajmani
See Also:
Serialized Form

Field Summary
(package private) static java.lang.String SDSI_TYPE
           
 
Fields inherited from class sdsi.SDSIObject
_hash, _modified, srep
 
Constructor Summary
(package private) Threshold(SexpList list)
           
 
Method Summary
static Threshold create(int threshold, Subject[] subjects)
           
 java.lang.String getAbbreviation()
          Returns a single or double letter abbreviation this SDSIObject.
 Subject[] getSubjects()
           
 int getThreshold()
           
 int getTotal()
           
 java.lang.String getType()
          Returns a short string that represents the type of this SDSIObject.
 boolean sameAs(java.lang.Object object)
           
 java.lang.String toShortString()
          Returns a short descriptive string representing this SDSIObject.
 
Methods inherited from class sdsi.SDSIObject
equals, getHash, getHash, getSrep, hashCode, principalParse, readFrom, readFrom, sign, toReadableString, toString, writeCanonical, writeReadable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface sdsi.Subject
getSrep
 

Field Detail

SDSI_TYPE

static final java.lang.String SDSI_TYPE
See Also:
Constant Field Values
Constructor Detail

Threshold

Threshold(SexpList list)
    throws SexpParseException
Method Detail

getType

public java.lang.String getType()
Description copied from class: SDSIObject
Returns a short string that represents the type of this SDSIObject.

Overrides:
getType in class SDSIObject
Returns:
a string represent the type of SDSIObject we're dealing with.

toShortString

public java.lang.String toShortString()
Description copied from class: SDSIObject
Returns a short descriptive string representing this SDSIObject.

Specified by:
toShortString in interface Subject
Specified by:
toShortString in class SDSIObject
Returns:
a short string description of this SDSIObject.

getThreshold

public int getThreshold()

getTotal

public int getTotal()

getAbbreviation

public java.lang.String getAbbreviation()
Description copied from class: SDSIObject
Returns a single or double letter abbreviation this SDSIObject.

Specified by:
getAbbreviation in class SDSIObject
Returns:
an abbreviated description of this SDSIObject.

getSubjects

public Subject[] getSubjects()

sameAs

public boolean sameAs(java.lang.Object object)
Specified by:
sameAs in interface Subject
Overrides:
sameAs in class SDSIObject

create

public static Threshold create(int threshold,
                               Subject[] subjects)
                        throws SDSIException
SDSIException