Package ai.libs.jaicore.components.model
Class Interface
- java.lang.Object
-
- ai.libs.jaicore.components.model.Interface
-
- All Implemented Interfaces:
IRequiredInterfaceDefinition,java.io.Serializable
public class Interface extends java.lang.Object implements IRequiredInterfaceDefinition, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Interface(java.lang.String id, java.lang.String name, java.lang.Boolean optional, java.lang.Boolean uniqueComponents, java.lang.Boolean ordered, java.lang.Integer min, java.lang.Integer max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetId()intgetMax()intgetMin()The minimum can be greater than 0 even if the interface is optional.java.lang.StringgetName()inthashCode()booleanisOptional()booleanisOrdered()booleanisUniqueComponents()
-
-
-
Method Detail
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceIRequiredInterfaceDefinition- 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)
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceIRequiredInterfaceDefinition- Returns:
- the name of the interface
-
getMin
public int getMin()
Description copied from interface:IRequiredInterfaceDefinitionThe 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.- Specified by:
getMinin interfaceIRequiredInterfaceDefinition- Returns:
- minimum number of required realizations if satisfied at all
-
getMax
public int getMax()
- Specified by:
getMaxin interfaceIRequiredInterfaceDefinition- Returns:
- maximum number of allowed realizations
-
isUniqueComponents
public boolean isUniqueComponents()
- Specified by:
isUniqueComponentsin interfaceIRequiredInterfaceDefinition- Returns:
- Tells whether there is a limitation that each component must be contained at most once
-
isOrdered
public boolean isOrdered()
- Specified by:
isOrderedin interfaceIRequiredInterfaceDefinition- Returns:
- Tells whether the order of realizations of this interface is relevant or not.
-
isOptional
public boolean isOptional()
- Specified by:
isOptionalin interfaceIRequiredInterfaceDefinition- Returns:
- Tells whether the required interface is optional
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-