Class MockCategoryFactory

  • All Implemented Interfaces:
    CatFactory

    public class MockCategoryFactory
    extends java.lang.Object
    implements CatFactory
    • Constructor Detail

      • MockCategoryFactory

        public MockCategoryFactory()
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • MockCategoryFactory

        public MockCategoryFactory​(java.lang.String config)
                            throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getReadLock

        public java.util.concurrent.locks.Lock getReadLock()
        Specified by:
        getReadLock in interface CatFactory
      • getWriteLock

        public java.util.concurrent.locks.Lock getWriteLock()
        Specified by:
        getWriteLock in interface CatFactory
      • getConfig

        public Catinfo getConfig()
        Return the categories configuration.
        Specified by:
        getConfig in interface CatFactory
        Returns:
        the categories configuration
      • getCategory

        public Category getCategory​(java.lang.String name)
        Description copied from interface: CatFactory

        getCategory

        Specified by:
        getCategory in interface CatFactory
        Parameters:
        name - a String object.
        Returns:
        a Category object.
      • getEffectiveRule

        public java.lang.String getEffectiveRule​(java.lang.String catlabel)
        Description copied from interface: CatFactory

        getEffectiveRule

        Specified by:
        getEffectiveRule in interface CatFactory
        Parameters:
        catlabel - a String object.
        Returns:
        a String object.
      • getNormal

        public double getNormal​(java.lang.String catlabel)
        Description copied from interface: CatFactory

        getNormal

        Specified by:
        getNormal in interface CatFactory
        Parameters:
        catlabel - a String object.
        Returns:
        a double.
      • getWarning

        public double getWarning​(java.lang.String catlabel)
        Description copied from interface: CatFactory

        getWarning

        Specified by:
        getWarning in interface CatFactory
        Parameters:
        catlabel - a String object.
        Returns:
        a double.