public class FuzzyActivityDomain extends MetaConstraint
MetaConstraint for fuzzy context recognition. Variable of the
the meta-CSP are rules in a so-called "domain" (this class), and values are unifications of the
requirements prescribed by these rules with existing FuzzyActivity variables.| Modifier and Type | Class and Description |
|---|---|
static class |
FuzzyActivityDomain.markings
A
FuzzyActivity representing a hypothesis can be justified or not. |
independentMC, metaCS, valOH, varOHannotation, autoRemovable, color, id, logger, masked, numIDs, scope| Constructor and Description |
|---|
FuzzyActivityDomain()
Creates a new
FuzzyActivityDomain. |
| Modifier and Type | Method and Description |
|---|---|
void |
addFuzzySensorEvents(FuzzySensorEvent... events)
Add one or more sensor events to this
MetaConstraint. |
void |
addRule(Rule r)
Add a
Rule to this MetaConstraint. |
java.lang.Object |
clone() |
void |
draw(ConstraintNetwork network)
Method to draw the metaCSP's constraint network according to the rationale of
this
MetaConstraint (e.g., for a resource, this could be the resource usage profile
as it is determined by the given constraint network). |
double |
getConsitency()
Get the upper bound on the overall (temporal + value) consistency of
the
ConstraintNetwork. |
ConstraintNetwork |
getConstraintNetwork()
Get the
ConstraintNetwork used by the meta-CSP's
FuzzyActivityNetworkSolver. |
java.lang.String |
getEdgeLabel()
Every
Constraint should implement this method - its value is
what is drawn by the ConstraintNetwork rendering methods. |
java.util.Vector<Constraint> |
getFalseClause()
IRAN: please comment this.
|
ConstraintSolver |
getGroundSolver()
Provides the definition of how to get the/a groundSolver for this
MetaConstraint. |
ConstraintNetwork[] |
getMetaValues(MetaVariable metaVariable)
Get all meta values for a given
MetaVariable. |
ConstraintNetwork[] |
getMetaVariables()
Get all
MetaVariables according to this MetaConstraint. |
java.lang.String |
getOptimalHypothesis(ConstraintNetwork optCn,
double vc,
double tc) |
Rule[] |
getRules()
Get all rules in this
MetaConstraint. |
double |
getTemporalConsistency() |
double |
getValueConsistency() |
boolean |
isEquivalent(Constraint c)
Method for assessing the "equivalence" between two constraints.
|
void |
markResolvedSub(MetaVariable con,
ConstraintNetwork metaValue)
Method to mark a
MetaVariable as solved. |
void |
resetFalseClause()
IRAN: please comment this.
|
void |
setRuleDependency()
IRAN: can you make this private or protected?
|
void |
setUnjustified(ConstraintNetwork metaVariable)
Sets all
Variables underlying a MetaVariable to the UNJUSTIFIED state. |
java.lang.String |
toString()
Every
Constraint should implement a toString method (used by the
ConstraintNetwork rendering methods). |
getDescription, getMetaValue, getMetaVariable, getValOH, getVarOH, setMetaSolver, setValOH, setVarOHgetAnnotation, getColor, getID, getScope, isAutoRemovable, isMasked, isSkippableSolver, isUnary, mask, setAnnotation, setAutoRemovable, setColor, setScope, skipSolver, unmaskpublic FuzzyActivityDomain()
FuzzyActivityDomain. Rules should then be added to the instantiated domain.public void setRuleDependency()
public void setUnjustified(ConstraintNetwork metaVariable)
Variables underlying a MetaVariable to the UNJUSTIFIED state.metaVariable - public ConstraintNetwork[] getMetaVariables()
MetaConstraintMetaVariables according to this MetaConstraint. This method must be implemented by the
designer of the implementing MetaConstraint class.getMetaVariables in class MetaConstraintMetaVariables according to this MetaConstraint.public ConstraintNetwork[] getMetaValues(MetaVariable metaVariable)
MetaConstraintMetaVariable. This method must be
implemented in the specific MetaConstraint.getMetaValues in class MetaConstraintmetaVariable - The MetaVariable for which we seek meta values.MetaVariable.public void markResolvedSub(MetaVariable con, ConstraintNetwork metaValue)
MetaConstraintMetaVariable as solved. This method is called by the
MetaConstraintSolver and must be implemented by the developer of the
MetaConstraint.markResolvedSub in class MetaConstraintcon - The MetaVariable that is to be considered solved by
the given meta value.metaValue - The solving meta value.public void draw(ConstraintNetwork network)
MetaConstraintMetaConstraint (e.g., for a resource, this could be the resource usage profile
as it is determined by the given constraint network). This method must be implemented by the
developer of the MetaConstraint.draw in class MetaConstraintnetwork - The constraint network to draw.public void addRule(Rule r)
Rule to this MetaConstraint.r - The rule to add.public Rule[] getRules()
MetaConstraint.MetaConstraint.public void addFuzzySensorEvents(FuzzySensorEvent... events)
MetaConstraint.events - The events to add.public double getConsitency()
ConstraintNetwork.ConstraintNetwork.public ConstraintNetwork getConstraintNetwork()
ConstraintNetwork used by the meta-CSP's
FuzzyActivityNetworkSolver.ConstraintNetwork used by the meta-CSP.public java.util.Vector<Constraint> getFalseClause()
public void resetFalseClause()
public java.lang.String getOptimalHypothesis(ConstraintNetwork optCn, double vc, double tc)
public double getValueConsistency()
public double getTemporalConsistency()
public java.lang.String toString()
ConstraintConstraint should implement a toString method (used by the
ConstraintNetwork rendering methods).toString in class ConstraintString representation of this Constraint.public java.lang.String getEdgeLabel()
ConstraintConstraint should implement this method - its value is
what is drawn by the ConstraintNetwork rendering methods.getEdgeLabel in class ConstraintString representation of the constraint to be used for
ConstraintNetwork rendering.public java.lang.Object clone()
clone in class Constraintpublic boolean isEquivalent(Constraint c)
ConstraintisEquivalent in class Constraintc - The Constraint to compare against.true iff the two constraints are considered to be equivalent.public ConstraintSolver getGroundSolver()
MetaConstraintMetaConstraint.getGroundSolver in class MetaConstraintMetaConstraint.