|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.processmining.framework.log.filter.LogFilterCollection
public class LogFilterCollection
Defines a collection of logFilters of a certain type.
This class is declared abstract, because subclasses need to specify which type of
logFilters are accepted by the particular collection (i.e. they should override the
abstract isValidlogFilter
method).
Subclasses should also be implemented using the singleton pattern. This means that there is only a single collection of algorithms during the execution of the program.
In general, a subclass will look as follows:
public class MyCollection extends logFilterCollection {
private static MyCollection instance = null;
protected MyCollection() {}
public static MyCollection getInstance() {
if (instance == null) {
instance = new MyCollection();
}
return instance;
}
public boolean isValidlogFilter(logFilter logFilter) {
return logFilter instanceof MylogFilter;
}
}
Constructor Summary | |
---|---|
protected |
LogFilterCollection()
|
Method Summary | |
---|---|
void |
add(LogFilter logFilter,
java.lang.String sortName)
|
LogFilter |
get(int index)
Get a logFilter by its index in the collection. |
LogFilter |
get(java.lang.String name)
Get a logFilter by its name. |
static LogFilterCollection |
getInstance()
Returns an instance of an MiningPluginCollection . |
void |
loadFromIni(java.lang.String filename,
ProMSplash splash)
Load logFilters from ini file. |
void |
loadFromList(java.lang.String list,
ProMSplash splash)
Load logFilters from a semi-colon separated list of class names. |
int |
size()
Number of logFilters in the collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LogFilterCollection()
Method Detail |
---|
public static LogFilterCollection getInstance()
MiningPluginCollection
.
MiningPluginCollection
public void loadFromIni(java.lang.String filename, ProMSplash splash)
filename
- ini file to load logFilters fromsplash
- splashscreen to write messages topublic void loadFromList(java.lang.String list, ProMSplash splash)
list
- a semi-colon separated list of class names of logFilterssplash
- the prom splashscreen to write messages topublic int size()
public LogFilter get(int index)
index
- the index of the logFilter in the list (in the range [0..size() - 1])
public LogFilter get(java.lang.String name)
name
- the name of the logFilter to get
public void add(LogFilter logFilter, java.lang.String sortName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |