FilterAttribute.java

Go to the documentation of this file.
00001 package edu.rice.cs.hpc.data.filter;
00002 
00003 import java.io.Serializable;
00004 
00005 /****************************************************
00006  * 
00007  * Attribute of a filter.
00008  * A filter has two attributes:<br/>
00009  * <ul>
00010  *  <li> enable: flag for enable/disable
00011  *  <li> filterType: type of filtering (inclusive or exclusive)
00012  * </ul>
00013  ****************************************************/
00014 public class FilterAttribute implements Serializable
00015 {
00019     private static final long serialVersionUID = 1399047856674915771L;
00020 
00021     /****
00022      * 
00023      * Enumeration for type of filter: 
00024      * inclusive: filter the nodes and its descendants
00025      * exclusive: filter only the node
00026      */
00027     static public enum Type {Inclusive, Exclusive};
00028     
00029     /***
00030      * Flag true: the filter is enabled
00031      * Flag false: disabled
00032      */
00033     public Boolean enable  = true;
00034     
00035     /*****
00036      * @see Type
00037      */
00038     public Type filterType = Type.Inclusive;
00039     
00040     /*****
00041      * get the name of the filter
00042      * 
00043      * @return
00044      */
00045     public String getFilterType() 
00046     {
00047         return filterType.name();
00048     }
00049     
00050     /*
00051      * (non-Javadoc)
00052      * @see java.lang.Object#toString()
00053      */
00054     public String toString()
00055     {
00056         return "(" + enable + "," + filterType + ")";
00057     }
00058 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1