ComponentParameters
References[IoId("00000000-1193-48a8-aaee-b330e55149a0")]
public sealed class ComponentParameters : IEnumerable<IParameter>, IStorable
Implementation of IComponentParameters.
Constructors
Properties
MetaMixingRecipe
#Gets or sets the inheritance map for meta data on this component. Leave blank to use default inheritance logic. Setting this property will not expire the component or cause a new solution to be computed, those steps are the responsibility of the caller.
MetaMixingTable
#Gets the meta data inheritance map resolved to valid indices. This is an array of length OutputCount where each entry lists all the input parameter indices that act as inheritance parents for each output.
Methods
AddInput
#Add an input parameter to the bottom of the list.
Parameters:
| parameter (IParameter) | Parameter to add. |
| undo (ActionList) | Optional list of undo actions to populate. |
AddInput
#Insert an input parameter into the list.
Parameters:
| parameter (IParameter) | Parameter to insert. |
| index (int) | Insertion index. |
| undo (ActionList) | Optional list of undo actions to populate. |
AddInput
#obsoleteUse the overload which records undo actions.
Insert an input parameter into the list.
Parameters:
| parameter (IParameter) | Parameter to insert. |
| index (int) | Insertion index. |
AddInput
#obsoleteUse the overload which records undo actions.
Add an input parameter to the bottom of the list.
Parameters:
| parameter (IParameter) | Parameter to add. |
AddOutput
#Add an output parameter to the bottom of the list.
Parameters:
| parameter (IParameter) | Parameter to add. |
| undo (ActionList) | Optional list of undo actions to populate. |
AddOutput
#Insert an output parameter into the list.
Parameters:
| parameter (IParameter) | Parameter to insert. |
| index (int) | Insertion index. |
| undo (ActionList) | Optional list of undo actions to populate. |
AddOutput
#obsoleteUse the overload which records undo actions.
Insert an output parameter into the list.
Parameters:
| parameter (IParameter) | Parameter to insert. |
| index (int) | Insertion index. |
AddOutput
#obsoleteUse the overload which records undo actions.
Add an output parameter to the bottom of the list.
Parameters:
| parameter (IParameter) | Parameter to add. |
AutoInputMaintenance
#A utility method for processing all input parameters from within a Component.VariableParameterMaintenance() method.
Parameters:
| nameFormat (string) | String format for the nomen name. May contain '{index}', '{number}', and '{ordinal}' patterns. |
| infoFormat (string) | String format for the nomen info. May contain '{index}', '{number}', and '{ordinal}' patterns. |
| userFormat (string) | String format for the user name. May contain '{index}' pattern. |
| indexMap (Func<int, int>) | Function for converting zero-based parameter indices into usage indices. May be null. |
| requirement (Requirement) | Requirement to assign to each parameter. |
AutoOutputMaintenance
#A utility method for processing all output parameters from within a Component.VariableParameterMaintenance() method.
Parameters:
| nameFormat (string) | String format for the nomen name. May contain '{index}', '{number}', and '{ordinal}' patterns. |
| infoFormat (string) | String format for the nomen info. May contain '{index}', '{number}', and '{ordinal}' patterns. |
| userFormat (string) | String format for the user name. May contain '{index}' pattern. |
| indexMap (Func<int, int>) | Function for converting zero-based parameter indices into usage indices. May be null. |
GetEnumerator
#Returns an enumerator that iterates through the collection.
Returns: An enumerator that can be used to iterate through the collection.
GetInputStates
#[EditorBrowsable(EditorBrowsableState.Never)]
public void GetInputStates(out IParameter[] inputs, out Access[] access)
Get arrays describing the current input state.
Parameters:
| inputs (out IParameter[]) | Input parameters. |
| access (out Access[]) | Access level for all inputs. |
GetOutputStates
#[EditorBrowsable(EditorBrowsableState.Never)]
public void GetOutputStates(out IParameter[] outputs, out Access[] access)
Gets arrays describing the current output state.
Parameters:
| outputs (out IParameter[]) | Output parameters. |
| access (out Access[]) | Access level for all outputs. |
GetPinStates
#Get arrays describing the current pinned states.
Parameters:
| pins (out IParameter[]) | Pinned parameters. |
IndexOfFirstInputOfType
#Gets the index of the first input parameter whose type is compatible with the provided type.
IndexOfFirstOutputOfType
#Gets the index of the first output parameter whose type is compatible with the provided type.
IndexOfInput
#Gets the index of the given parameter.
Parameters:
| id (Guid) | Parameter instanceId to search for. |
Returns: Index or -1 if parameter is not an input.
IndexOfInput
#Gets the index of the given parameter.
Parameters:
| parameter (IParameter) | Parameter to search for. |
Returns: Index or -1 if parameter is not an input.
IndexOfOutput
#Gets the index of the given parameter.
Parameters:
| id (Guid) | Parameter instanceId to search for. |
Returns: Index or -1 if parameter is not an output.
IndexOfOutput
#Gets the index of the given parameter.
Parameters:
| parameter (IParameter) | Parameter to search for. |
Returns: Index or -1 if parameter is not an output.
Input
#Gets the input parameter with the specified id.
Parameters:
| id (Guid) | Parameter instanceId. |
Returns: Parameter with specified id.
Input
#Gets the input parameter at the specified index.
Parameters:
| index (int) | Index of parameter to retrieve. |
Returns: Parameter at index.
IsInput
#Test whether a specific parameter is defined as an input.
Parameters:
| id (Guid) | Parameter instanceId to test for. |
Returns: True if parameter is indeed an input.
IsInput
#Test whether a specific parameter is defined as an input.
Parameters:
| parameter (IParameter) | Parameter to test for. |
Returns: True if parameter is indeed an input.
IsOutput
#Test whether a specific parameter is defined as an output.
Parameters:
| id (Guid) | Parameter instanceId to test for. |
Returns: True if parameter is indeed an output.
IsOutput
#Test whether a specific parameter is defined as an output.
Parameters:
| parameter (IParameter) | Parameter to test for. |
Returns: True if parameter is indeed an output.
Output
#Gets the output parameter with the specified id.
Parameters:
| id (Guid) | Parameter instanceId. |
Returns: Parameter with specified id.
Output
#Gets the output parameter at the specified index.
Parameters:
| index (int) | Index of parameter to retrieve. |
Returns: Parameter at index.
RemoveInput
#Remove the input parameter at the specified index.
Parameters:
| index (int) | Index of parameter to remove. |
| undo (ActionList) | Optional list of undo actions to populate. |
RemoveInput
#obsoleteUse the overload which records undo actions.
Remove the input parameter at the specified index.
Parameters:
| index (int) | Index of parameter to remove. |
RemoveInput
#Remove the specified input parameter.
Parameters:
| parameter (IParameter) | Parameter to remove. |
| undo (ActionList) | Optional list of undo actions to populate. |
RemoveInput
#obsoleteUse the overload which records undo actions.
Remove the specified input parameter.
Parameters:
| parameter (IParameter) | Parameter to remove. |
RemoveOutput
#Remove the output parameter at the specified index.
Parameters:
| index (int) | Index of parameter to remove. |
| undo (ActionList) | Optional list of undo actions to populate. |
RemoveOutput
#obsoleteUse the overload which records undo actions.
Remove the output parameter at the specified index.
Parameters:
| index (int) | Index of parameter to remove. |
RemoveOutput
#Remove the specified output parameter.
Parameters:
| parameter (IParameter) | Parameter to remove. |
| undo (ActionList) | Optional list of undo actions to populate. |
RemoveOutput
#obsoleteUse the overload which records undo actions.
Remove the specified output parameter.
Parameters:
| parameter (IParameter) | Parameter to remove. |
Requirement
#Gets the parameter requirement for a given input id.
Parameters:
| id (Guid) | Parameter instanceId. |
Returns: Requirement.
Requirement
#Gets the parameter requirement for a given input index.
Parameters:
| index (int) | Index of input parameter. |
Returns: Requirement.
SortInputs
#Sort the input parameters based on keys. This method fails silently.
Parameters:
| keys (double[]) |
SortInputs
#Sort the input parameters based on keys. This method fails silently.
Parameters:
| keys (int[]) |
SortOutputs
#Sort the output parameters based on keys. This method fails silently.
Parameters:
| keys (double[]) |
SortOutputs
#Sort the output parameters based on keys. This method fails silently.
Parameters:
| keys (int[]) |
Returns an enumerator that iterates through a collection.
Returns: An IEnumerator object that can be used to iterate through the collection.
Events
ParameterMaintenanceRequired
#This event is raised whenever a significant change to the parameter topology has been made. For example when parameters get added, removed or deserialized. Making sure parameter access, nicknames, mutability, etc. are correctly set up is best done by handling this event.