public class ComponentInstance
extends java.lang.Object
Component, a Component Instance defines all parameter values and the required interfaces (recursively) and thus provides a grounding of the respective
Component.| Constructor and Description |
|---|
ComponentInstance(Component component,
java.util.Map<java.lang.String,java.lang.String> parameterValues,
java.util.Map<java.lang.String,ComponentInstance> satisfactionOfRequiredInterfaces)
Constructor for creating a
ComponentInstance for a particular Component. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Component |
getComponent() |
java.util.Collection<Component> |
getContainedComponents() |
java.lang.String |
getNestedComponentDescription() |
java.util.Collection<Parameter> |
getParametersThatHaveBeenSetExplicitly() |
java.util.Collection<Parameter> |
getParametersThatHaveNotBeenSetExplicitly() |
java.lang.String |
getParameterValue(Parameter param) |
java.lang.String |
getParameterValue(java.lang.String paramName) |
java.util.Map<java.lang.String,java.lang.String> |
getParameterValues() |
java.lang.String |
getPrettyPrint()
Returns the description of a
ComponentInstance as a pretty print with indentation. |
java.util.Map<java.lang.String,ComponentInstance> |
getSatisfactionOfRequiredInterfaces() |
int |
hashCode() |
boolean |
matchesPathRestriction(java.util.List<ai.libs.jaicore.basic.sets.Pair<java.lang.String,java.lang.String>> path)
This method checks, whether a path of refinements conforms the constraints for parameter refinements.
|
boolean |
matchesPathRestrictions(java.util.Collection<java.util.List<ai.libs.jaicore.basic.sets.Pair<java.lang.String,java.lang.String>>> paths)
This method checks, whether a given list of paths of refinements conforms the constraints for parameter refinements.
|
java.lang.String |
toComponentNameString() |
java.lang.String |
toString() |
public ComponentInstance(Component component, java.util.Map<java.lang.String,java.lang.String> parameterValues, java.util.Map<java.lang.String,ComponentInstance> satisfactionOfRequiredInterfaces)
ComponentInstance for a particular Component.component - The component that is grounded.parameterValues - A map containing the parameter values of this grounding.satisfactionOfRequiredInterfaces - The refinement of the required interfaces.public Component getComponent()
Component to this ComponentInstance.public java.util.Map<java.lang.String,java.lang.String> getParameterValues()
public java.util.Collection<Parameter> getParametersThatHaveBeenSetExplicitly()
public java.util.Collection<Parameter> getParametersThatHaveNotBeenSetExplicitly()
public java.lang.String getParameterValue(Parameter param)
param - The parameter for which the value shall be returned.public java.lang.String getParameterValue(java.lang.String paramName)
paramName - The name of the parameter for which the value is requested.public java.util.Map<java.lang.String,ComponentInstance> getSatisfactionOfRequiredInterfaces()
public java.util.Collection<Component> getContainedComponents()
ComponentInstance.public boolean matchesPathRestrictions(java.util.Collection<java.util.List<ai.libs.jaicore.basic.sets.Pair<java.lang.String,java.lang.String>>> paths)
paths - A list of paths of refinements to be checked.public boolean matchesPathRestriction(java.util.List<ai.libs.jaicore.basic.sets.Pair<java.lang.String,java.lang.String>> path)
path - A path of refinements to be checked.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toComponentNameString()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getPrettyPrint()
throws java.io.IOException
ComponentInstance as a pretty print with indentation.java.io.IOException - An IOException is thrown if the object cannot be serialized to a String.public java.lang.String getNestedComponentDescription()