public abstract class Filter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
CAN_FAIL
Set if the Filter can exit with a false result
|
static int |
CAN_SUCCEED
Set if the Filter can exit with a true result
|
Circuit |
circuit |
protected java.util.Set<PropDef> |
consProps |
java.lang.ClassLoader |
contextLoader |
static java.util.Set<PropDef> |
EMPTY_PROP_DEF_SET |
static java.util.Set<java.lang.String> |
EMPTY_STRING_SET |
protected java.util.Set<PropDef> |
genProps |
protected java.lang.String |
name |
protected java.util.Set<PropDef> |
reqProps |
Constructor and Description |
---|
Filter() |
Modifier and Type | Method and Description |
---|---|
void |
addPropDefs(java.util.Set<PropDef> propDefs,
java.util.Collection<java.lang.String> props) |
protected void |
configure(com.vordel.precipitate.SolutionPack context,
Entity entity)
Called to initially configure a filter from the entity store.
|
ESPK |
getCircuitPK() |
abstract java.lang.Class<? extends FilterContainer> |
getConfigPanelClass()
Get the Class which must be instantiated to configure the Filter.
|
java.util.Set<PropDef> |
getConsProps() |
Entity |
getEntity()
Get the underlying Entity which persists the configuration for this
Filter
|
FilterContainer |
getFailureNode()
Get the next node to visit, should this Filter fail upon invocation
|
protected ESPK |
getFailureNodePK()
Get the ESPK of the Filter to visit if this Filter fails
|
java.util.Set<PropDef> |
getGenProps() |
abstract java.lang.Class<? extends MessageProcessor> |
getMessageProcessorClass()
Get the Class which must be instantiated to process this Filter to implement a MessageProcessor
|
java.lang.String |
getName()
Get the name of the Filter
|
int |
getPossibleOutcomes()
Get the bitmask for the possible outcomes to this Filter's evaluation.
|
java.util.Set<PropDef> |
getReqProps() |
FilterContainer |
getSuccessNode()
Get the next node to visit, should this Filter succeed upon invocation
|
protected ESPK |
getSuccessNodePK()
Get the ESPK of the Filter to visit if this Filter succeeds
|
void |
reconfigure(com.vordel.precipitate.SolutionPack ctx,
Entity entity) |
void |
setCircuitPK(ESPK circuitPK) |
protected void |
setDefaultPropertyDefs() |
void |
setEntity(Entity entity) |
protected void |
setFailureNode(FilterContainer fc) |
void |
setName(java.lang.String name) |
void |
setShouldAbortProcessingOnLogError(boolean _abort) |
protected void |
setSuccessNode(FilterContainer fc) |
boolean |
shouldAbortProcessingOnLogError() |
public static java.util.Set<PropDef> EMPTY_PROP_DEF_SET
public static java.util.Set<java.lang.String> EMPTY_STRING_SET
public static final int CAN_SUCCEED
public static final int CAN_FAIL
public Circuit circuit
protected java.util.Set<PropDef> reqProps
protected java.util.Set<PropDef> genProps
protected java.util.Set<PropDef> consProps
protected java.lang.String name
public java.lang.ClassLoader contextLoader
public java.util.Set<PropDef> getReqProps()
public java.util.Set<PropDef> getGenProps()
public java.util.Set<PropDef> getConsProps()
public void addPropDefs(java.util.Set<PropDef> propDefs, java.util.Collection<java.lang.String> props)
public int getPossibleOutcomes()
public abstract java.lang.Class<? extends MessageProcessor> getMessageProcessorClass() throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
- If the class is unavailablepublic abstract java.lang.Class<? extends FilterContainer> getConfigPanelClass() throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
- If the class is unavailablepublic FilterContainer getSuccessNode()
public FilterContainer getFailureNode()
public Entity getEntity()
public java.lang.String getName()
public void setName(java.lang.String name)
protected ESPK getSuccessNodePK()
public boolean shouldAbortProcessingOnLogError()
public void setShouldAbortProcessingOnLogError(boolean _abort)
protected ESPK getFailureNodePK()
protected void setSuccessNode(FilterContainer fc)
protected void setFailureNode(FilterContainer fc)
protected void configure(com.vordel.precipitate.SolutionPack context, Entity entity) throws EntityStoreException
context
- entity
- EntityStoreException
public void reconfigure(com.vordel.precipitate.SolutionPack ctx, Entity entity) throws EntityStoreException
EntityStoreException
public void setEntity(Entity entity)
public ESPK getCircuitPK()
public void setCircuitPK(ESPK circuitPK)
protected void setDefaultPropertyDefs()
This documentation and all its contents and graphics, copyright © 1999 - 2011 Vordel