Package ai.libs.jaicore.components.api
Interface IRequiredInterfaceDefinition
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
Interface
public interface IRequiredInterfaceDefinition extends java.io.Serializable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetId()intgetMax()intgetMin()The minimum can be greater than 0 even if the interface is optional.java.lang.StringgetName()booleanisOptional()booleanisOrdered()booleanisUniqueComponents()
-
-
-
Method Detail
-
getName
java.lang.String getName()
- Returns:
- the name of the interface
-
getId
java.lang.String getId()
- Returns:
- the id of this interface within the component that defines it (can be interpreted as the *role* name of this interface in the component)
-
isOrdered
boolean isOrdered()
- Returns:
- Tells whether the order of realizations of this interface is relevant or not.
-
isUniqueComponents
boolean isUniqueComponents()
- Returns:
- Tells whether there is a limitation that each component must be contained at most once
-
isOptional
boolean isOptional()
- Returns:
- Tells whether the required interface is optional
-
getMin
int getMin()
The minimum can be greater than 0 even if the interface is optional. In that case, the semantic is: Either the interface is not satisfied or it has at least this number of realizations.- Returns:
- minimum number of required realizations if satisfied at all
-
getMax
int getMax()
- Returns:
- maximum number of allowed realizations
-
-