public class MockCategoryFactory extends Object implements CatFactory
Constructor and Description |
---|
MockCategoryFactory() |
MockCategoryFactory(String config) |
Modifier and Type | Method and Description |
---|---|
Category |
getCategory(String name)
getCategory
|
Catinfo |
getConfig()
Return the categories configuration.
|
String |
getEffectiveRule(String catlabel)
getEffectiveRule
|
double |
getNormal(String catlabel)
getNormal
|
Lock |
getReadLock() |
double |
getWarning(String catlabel)
getWarning
|
Lock |
getWriteLock() |
public MockCategoryFactory() throws IOException
IOException
public MockCategoryFactory(String config) throws IOException
IOException
public Lock getReadLock()
getReadLock
in interface CatFactory
public Lock getWriteLock()
getWriteLock
in interface CatFactory
public Catinfo getConfig()
getConfig
in interface CatFactory
public Category getCategory(String name)
CatFactory
getCategory
getCategory
in interface CatFactory
name
- a String
object.Category
object.public String getEffectiveRule(String catlabel)
CatFactory
getEffectiveRule
getEffectiveRule
in interface CatFactory
catlabel
- a String
object.String
object.public double getNormal(String catlabel)
CatFactory
getNormal
getNormal
in interface CatFactory
catlabel
- a String
object.public double getWarning(String catlabel)
CatFactory
getWarning
getWarning
in interface CatFactory
catlabel
- a String
object.Copyright © 2018. All rights reserved.