Class RHardConstraints
- java.lang.Object
-
- jadex.bridge.nonfunctional.hardconstraints.RHardConstraints
-
public class RHardConstraints extends java.lang.Object
Class defining runtime hard constraints.
-
-
Field Summary
Fields Modifier and Type Field Description protected IExternalAccess
component
The component.protected java.util.Collection<MHardConstraint>
constraintmodel
Hard constraint modelprotected java.util.List<IAsyncFilter<?>>
filters
The basic hard constraints filterprotected java.util.List<ConstantValueFilter>
unboundconstantfilters
Unbound constant value filters
-
Constructor Summary
Constructors Constructor Description RHardConstraints(IExternalAccess component, java.util.Collection<MHardConstraint> constraintmodel)
Creates the runtime hard constraints.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addFilter(IAsyncFilter<IService> filter)
Adds a filter.IAsyncFilter<?>
getLocalFilter()
Gets the filter for local filtering.IAsyncFilter<IService>
getLocalFilter(MethodInfo method)
Gets the filter for local filtering.IAsyncFilter<?>
getRemotableFilter()
Gets the filter that is remotable.static <T> ITerminableIntermediateFuture<T>
getServices(IInternalAccess ia, java.lang.Class<T> type, ServiceScope scope, MethodInfo method, RHardConstraints hardconstraints)
void
optimizeFilters()
Used after searches to make bound filters remotable.
-
-
-
Field Detail
-
component
protected IExternalAccess component
The component.
-
constraintmodel
protected java.util.Collection<MHardConstraint> constraintmodel
Hard constraint model
-
filters
protected java.util.List<IAsyncFilter<?>> filters
The basic hard constraints filter
-
unboundconstantfilters
protected java.util.List<ConstantValueFilter> unboundconstantfilters
Unbound constant value filters
-
-
Constructor Detail
-
RHardConstraints
public RHardConstraints(IExternalAccess component, java.util.Collection<MHardConstraint> constraintmodel)
Creates the runtime hard constraints.- Parameters:
mhc
- The declared model hard constraints.
-
-
Method Detail
-
addFilter
protected void addFilter(IAsyncFilter<IService> filter)
Adds a filter.- Parameters:
filter
- The filter.
-
getRemotableFilter
public IAsyncFilter<?> getRemotableFilter()
Gets the filter that is remotable.- Returns:
- Remotable filter.
-
getLocalFilter
public IAsyncFilter<?> getLocalFilter()
Gets the filter for local filtering.- Returns:
- Filter for local filtering.
-
getLocalFilter
public IAsyncFilter<IService> getLocalFilter(MethodInfo method)
Gets the filter for local filtering.- Returns:
- Filter for local filtering.
-
optimizeFilters
public void optimizeFilters()
Used after searches to make bound filters remotable.
-
getServices
public static <T> ITerminableIntermediateFuture<T> getServices(IInternalAccess ia, java.lang.Class<T> type, ServiceScope scope, MethodInfo method, RHardConstraints hardconstraints)
-
-