Class Resolver.DefaultConstraints
- java.lang.Object
-
- net.ssehub.easy.reasoning.sseReasoner.Resolver.DefaultConstraints
-
- Enclosing class:
- Resolver
private static class Resolver.DefaultConstraints extends java.lang.ObjectStorage for two sub-types of default constraints, namely primary default constraints that can be evaluated directly, e.g., constants (defaultConstraints) and more complex constraints with dependencies (deferredDefaultConstraints). This structure is used to store the global lists inResolver, but also their temporary redirections for collecting all default initialization constraints of refined compounds. This structure is by default not initialized, i.e., the lists are intentionally null. Useinitialize()to initialize the lists.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private ConstraintListdefaultConstraintsprivate ConstraintListdeferredDefaultConstraints
-
Constructor Summary
Constructors Modifier Constructor Description privateDefaultConstraints()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidclear()Clears the constraint lists.private Resolver.DefaultConstraintsinitialize()Initializes this instance with defaults, i.e., new constraint lists.private voidtransfer(ConstraintList target, boolean clear)Transfers the constraint lists totarget.
-
-
-
Field Detail
-
defaultConstraints
private ConstraintList defaultConstraints
-
deferredDefaultConstraints
private ConstraintList deferredDefaultConstraints
-
-
Method Detail
-
initialize
private Resolver.DefaultConstraints initialize()
Initializes this instance with defaults, i.e., new constraint lists.- Returns:
this
-
clear
private void clear()
Clears the constraint lists.
-
transfer
private void transfer(ConstraintList target, boolean clear)
Transfers the constraint lists totarget.- Parameters:
target- the target list, e.g., the global constraint baseclear- clearsconstraintsby taking over all internal nodes
-
-