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
#Insert an input parameter into the list.
public void AddInput()
parameter,
Parameter to insert.
index,
Insertion index.
undo
Optional list of undo actions to populate.
AddInput
#Insert an input parameter into the list.
obsoleteUse the overload which records undo actions.
AddInput
#Add an input parameter to the bottom of the list.
obsoleteUse the overload which records undo actions.
AddOutput
#Insert an output parameter into the list.
public void AddOutput()
parameter,
Parameter to insert.
index,
Insertion index.
undo
Optional list of undo actions to populate.
AddOutput
#Insert an output parameter into the list.
obsoleteUse the overload which records undo actions.
AddOutput
#Add an output parameter to the bottom of the list.
obsoleteUse the overload which records undo actions.
AutoInputMaintenance
#A utility method for processing all input parameters from within a Component.VariableParameterMaintenance() method.
public void AutoInputMaintenance()
nameFormat,
String format for the nomen name. May contain '{index}', '{number}', and '{ordinal}' patterns.
infoFormat,
String format for the nomen info. May contain '{index}', '{number}', and '{ordinal}' patterns.
userFormat,
String format for the user name. May contain '{index}' pattern.
indexMap,
Function for converting zero-based parameter indices into usage indices. May be null.
requirement
Requirement to assign to each parameter.
AutoOutputMaintenance
#A utility method for processing all output parameters from within a Component.VariableParameterMaintenance() method.
public void AutoOutputMaintenance()
nameFormat,
String format for the nomen name. May contain '{index}', '{number}', and '{ordinal}' patterns.
infoFormat,
String format for the nomen info. May contain '{index}', '{number}', and '{ordinal}' patterns.
userFormat,
String format for the user name. May contain '{index}' pattern.
indexMap
Function for converting zero-based parameter indices into usage indices. May be null.
CreateUniqueInputName
#Create an input user name which isn't yet used in this instance.
Returns: Unique name.
CreateUniqueOutputName
#Create an output user name which isn't yet used in this instance.
Returns: Unique name.
GetEnumerator
#Returns an enumerator that iterates through the collection.
Returns: An enumerator that can be used to iterate through the collection.
GetInputStates
#Get arrays describing the current input state.
GetOutputStates
#Gets arrays describing the current output state.
GetPinStates
#Get arrays describing the current pinned states.
IndexOfFirstInputOfType
#Gets the index of the first input parameter whose type is compatible with the provided type.
Returns: Index of first parameter of type, or -1.
IndexOfFirstOutputOfType
#Gets the index of the first output parameter whose type is compatible with the provided type.
Returns: Index of first parameter of type, or -1.
IndexOfInput
#Gets the index of the given parameter.
Returns: Index or -1 if parameter is not an input.
IndexOfInput
#Gets the index of the given parameter.
Returns: Index or -1 if parameter is not an input.
IndexOfOutput
#Gets the index of the given parameter.
Returns: Index or -1 if parameter is not an output.
IndexOfOutput
#Gets the index of the given parameter.
Returns: Index or -1 if parameter is not an output.
IsInput
#Test whether a specific parameter is defined as an input.
Returns: True if parameter is indeed an input.
IsInput
#Test whether a specific parameter is defined as an input.
Returns: True if parameter is indeed an input.
IsOutput
#Test whether a specific parameter is defined as an output.
Returns: True if parameter is indeed an output.
IsOutput
#Test whether a specific parameter is defined as an output.
Returns: True if parameter is indeed an output.
RemoveInput
#Remove the input parameter at the specified index.
obsoleteUse the overload which records undo actions.
RemoveInput
#Remove the specified input parameter.
obsoleteUse the overload which records undo actions.
RemoveOutput
#Remove the output parameter at the specified index.
obsoleteUse the overload which records undo actions.
RemoveOutput
#Remove the specified output parameter.
obsoleteUse the overload which records undo actions.
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.