|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.cmu.aura.service.ReqUtil
ReqUtil provides various utility functions related to attribute requirements.
| Field Summary | |
static int |
B_MAX
|
static int |
B_MIN
|
static int |
R_ACCURACY
|
static int |
R_CONFIDENCE
|
static int |
R_INTERVAL
|
static int |
R_NONE
|
static int |
R_UPDATE_TIME
|
| Constructor Summary | |
ReqUtil()
|
|
| Method Summary | |
static void |
checkAllowedReqs(java.util.ArrayList reqs,
java.lang.String[] reqNames,
int allowedReqs)
Checks to see if for a list of particular attributes, all reqs applied to these attributes are of a valid type. |
static void |
checkAllowedReqs(java.util.ArrayList reqs,
java.lang.String reqName,
int allowedReqs)
Checks to see if for a particular attribute, all reqs applied to that attribute are of a valid type. |
static void |
checkForAllowedAttribs(java.util.ArrayList reqs,
java.lang.String[] allowedReqs)
Make sure that a list of reqs contains only the specified attributes. |
static void |
checkForDups(java.util.ArrayList reqs)
Throws a RequestException if duplicate attributes are detected. |
static boolean |
getIntervalBounds(java.util.ArrayList reqs,
long[] intervalBounds)
Combines the interval bounds from several different attribute requirements into a single bound encompassing all of the bounds. |
static boolean |
getUpdateTimeBoundsMillis(java.util.ArrayList reqs,
long[] bounds)
Combines the update time bounds from several different attribute requirements into a single bound encompassing all of the bounds. |
static void |
sanityCheckReqs(java.util.ArrayList reqs)
Perform sanity checks on the given reqs. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int B_MIN
public static final int B_MAX
public static final int R_NONE
public static final int R_CONFIDENCE
public static final int R_ACCURACY
public static final int R_UPDATE_TIME
public static final int R_INTERVAL
| Constructor Detail |
public ReqUtil()
| Method Detail |
public static void sanityCheckReqs(java.util.ArrayList reqs)
throws RequestException
reqs - reqs to sanity check
RequestException
public static void checkForAllowedAttribs(java.util.ArrayList reqs,
java.lang.String[] allowedReqs)
throws RequestException
reqs - the list of reqs to checkallowedReqs - the names of reqs that are allowed
RequestException
public static void checkForDups(java.util.ArrayList reqs)
throws RequestException
reqs - list of attribute requirements to check for dups
RequestException
public static boolean getIntervalBounds(java.util.ArrayList reqs,
long[] intervalBounds)
reqs - list to get bounds forintervalBounds - used to return the bounds
public static boolean getUpdateTimeBoundsMillis(java.util.ArrayList reqs,
long[] bounds)
reqs - list to get bounds forbounds - used to return the bounds
public static void checkAllowedReqs(java.util.ArrayList reqs,
java.lang.String[] reqNames,
int allowedReqs)
throws ReqNotSupportedException,
RequestException
reqs - the list of attribute requirements to checkallowedReqs - bit field specifying which requirements
are allowed
ReqNotSupportedException
RequestException
public static void checkAllowedReqs(java.util.ArrayList reqs,
java.lang.String reqName,
int allowedReqs)
throws ReqNotSupportedException
reqs - the list of attribute requirements to checkreqName - name of the attribute to check reqs onallowedReqs - bit field specifying which requirements
are allowed
ReqNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||