|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectviper.filters.RuleHolder
Holds the rules for the specific descriptors and their attributes. The rules define what sort of descriptor data to ignore, thus allowing the comparison program to focus on a subset of data from a video clip, for example, only data containing a certain word or a certain set of frames.
| Constructor Summary | |
RuleHolder()
CONSTRUCTOR(S) * |
|
| Method Summary | |
void |
addDescriptor(java.lang.String descriptor)
Adds a place for this descriptor |
void |
addRule(java.lang.String descriptor,
java.lang.String attribute_name,
Filterable.Rule rule)
Adds the attribute and the rule for that attribute to the descriptors list of attributes/rules. |
boolean |
meetsCriteria(Descriptor to_be_tested)
Checks if the descriptor meets the criteria set by the limitation rules |
java.lang.String |
toRawFormat()
Function used to print this object in RAW format. |
java.lang.String |
toString()
Function used to print this object in a string format. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RuleHolder()
| Method Detail |
public void addDescriptor(java.lang.String descriptor)
descriptor - a unique string representation
of the descriptor and its category
public void addRule(java.lang.String descriptor,
java.lang.String attribute_name,
Filterable.Rule rule)
throws BadDataException
descriptor - the descriptor to which the attribute/rule will be addedattribute_name - the name of the attribute to which the rule belongsrule - the limitations rule that describes the limitations criteria
BadDataExceptionpublic boolean meetsCriteria(Descriptor to_be_tested)
to_be_tested - the descriptor that has to be tested
public java.lang.String toRawFormat()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||