Package ru.ewc.decita
Interface Locator
- All Known Implementing Classes:
ConstantLocator
,DecisionTable
,InMemoryStorage
public interface Locator
I am the Locator service. My main responsibility is to find requested Fragment of the application
state.
- Since:
- 0.1
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionfragmentBy
(String fragment, ComputationContext context) Determines the system's state - the value of a single property, described by its name.outcome
(ComputationContext context) Computes this table's outcomes by checking all of itsRule
s.
-
Field Details
-
CONSTANT_VALUES
Name for computed valuesLocator
.- See Also:
-
-
Method Details
-
fragmentBy
Determines the system's state - the value of a single property, described by its name.- Parameters:
fragment
- The String identifier of the required property.context
- TheComputationContext
to use in property retrieval.- Returns:
- The value of the requested property as a
String
. - Throws:
DecitaException
- When the requestedCoordinate
cannot be found.
-
outcome
Computes this table's outcomes by checking all of itsRule
s.- Parameters:
context
- The specificComputationContext
to make a decision in.- Returns:
- The simple dictionary of the table's outcomes.
- Throws:
DecitaException
- If any of theRule
s cannot be checked.
-