ModelCenter/src/ModelCenter.odl (line 421)
Base class for all array types. Has common functionality for getting/setting array sizes and getting/setting values as strings.
Arrays start at 0 length by default. So you must set the size before you can assign individual array elements.
Inherits from:
Inherited by:
- ModelCenter::IBooleanArray
- ModelCenter::IDoubleArray
- ModelCenter::IFileArray
- ModelCenter::IIntegerArray
- ModelCenter::IReferenceArray
- ModelCenter::IStringArray
Members
- autoSize
- dependentLinks
- dependents
- directDependents
- directPrecedents
- fromString
- fromStringEx
- getDimensions
- getFullName
- getLength
- getMetadata
- getName
- getSize
- getType
- hasChanged
- hide
- invalidate
- isInput
- isInputToComponent
- isInputToModel
- isValid
- length
- numDimensions
- OwningComponent
- precedentLinks
- precedents
- setDimensions
- setLength
- setMetadata
- setSize
- size
- toString
- toStringAbsolute
- toStringAbsoluteEx
- toStringEx
- validate
Properties
Property hasChanged
ModelCenter/src/ModelCenter.odl (line 1)
Property hide
ModelCenter/src/ModelCenter.odl (line 1)
Property OwningComponent
ModelCenter/src/ModelCenter.odl (line 1)
Property size
ModelCenter/src/ModelCenter.odl (line 1)
Property autoSize
ModelCenter/src/ModelCenter.odl (line 1)
Property numDimensions
ModelCenter/src/ModelCenter.odl (line 1)
Property length
ModelCenter/src/ModelCenter.odl (line 1)
Public functions
Function isValid
Function validate
Function getName
Function getFullName
Function getType
Function isInput
- true: Input
- false: Output
Function toString
“1, 2, 3” for one-dimensional arrays or “bounds[3,3] {1, 2, 3, 4, 5, 6, 7, 8, 9}” for multi-dimensional arrays.
Returns:
The converted string value of the array.
Return type: BSTR
Reimplements: toString
Reimplemented by:
Function fromString
1D arrays, the specification is of the form ‘1,2,3’.For
nD arrays, the specification is of the form ‘bounds[2,2,2] {1,2,3,4,5,6,7,8}’.String arrays may optionally have the elements quoted in the form
‘bounds[2,3] {“a”, “b,c”, “d”, "", “e”, “f”}’
Parameters:
- value: New value.
- BSTR value
Function toStringAbsolute
“1, 2, 3” for one-dimensional arrays or “bounds[3,3] {1, 2, 3, 4, 5, 6, 7, 8, 9}” for multi-dimensional arrays.
Returns:
The converted string value of the array.
Return type: BSTR
Reimplements: toStringAbsolute
Reimplemented by:
- toStringAbsolute
- toStringAbsolute
- toStringAbsolute
- toStringAbsolute
- toStringAbsolute
- toStringAbsolute
Function invalidate
Function directPrecedents
- followSuspended: Optional boolean specifies whether links which are suspended should be included in the search. Default is false.
- reserved: Reserved for future use.
- [optional] VARIANT followSuspended
- [optional] VARIANT reserved
- directPrecedents
- directPrecedents
- directPrecedents
- directPrecedents
- directPrecedents
- directPrecedents
Function directDependents
- followSuspended: Optional boolean specifies whether links which are suspended should be included in the search. Default is false.
- reserved: Reserved for future use.
- [optional] VARIANT followSuspended
- [optional] VARIANT reserved
- directDependents
- directDependents
- directDependents
- directDependents
- directDependents
- directDependents
Function precedentLinks
- reserved: Reserved for future use.
- [optional] VARIANT reserved
Function dependentLinks
- reserved: Reserved for future use.
- [optional] VARIANT reserved
Function precedents
- followSuspended: Optional boolean specifies whether links which are suspended should be included in the search. Default is false.
- reserved: Reserved for future use.
- [optional] VARIANT followSuspended
- [optional] VARIANT reserved
Function dependents
- followSuspended: Optional boolean specifies whether links which are suspended should be included in the search. Default is false.
- reserved: Reserved for future use.
- [optional] VARIANT followSuspended
- [optional] VARIANT reserved
Function isInputToComponent
- true: Input
- false: Output
- isInputToComponent
- isInputToComponent
- isInputToComponent
- isInputToComponent
- isInputToComponent
- isInputToComponent
Function isInputToModel
- true: Input
- false: Output
Function setMetadata
- name: Metadata specifier used to store the data.
- type:
- value:
- access:
- archive:
- BSTR name
- MetadataType type
- VARIANT value
- MetadataAccess access
- boolean archive
Function getMetadata
- name: Metadata key name.
- BSTR name
Function toStringEx
- index: Index of the array element (0-based index).
- long index
Function fromStringEx
- value: New value.
- index: Index of the array element (0-based index).
- BSTR value
- long index
Function toStringAbsoluteEx
- index: Index of the array element (0-based index).
- long index
- toStringAbsoluteEx
- toStringAbsoluteEx
- toStringAbsoluteEx
- toStringAbsoluteEx
- toStringAbsoluteEx
- toStringAbsoluteEx
Function getLength
- dim: Dimension of the array to query. This uses a 0 based index, so 0 will give you the first dimension, 1 the second, etc. If omitted, gives the first dimension
- [optional] VARIANT dim
Function setLength
- length: New length of the n’th dimension of the array
- dim: The dimension to set. This uses a 0 based index, so 0 will set the first dimension, 1 the second, etc. If omitted, sets the first dimension
- long length
- [optional] VARIANT dim
Function setDimensions
- d1: length of the 1st dimension of the array
- d2: length of the 2nd dimension of the array. If omitted, the array is 1 dimensional
- d3: length of the 3rd dimension of the array. If omitted, the array is 2 dimensional
- d4: length of the 4th dimension of the array. If omitted, the array is 3 dimensional
- d5: length of the 5th dimension of the array. If omitted, the array is 4 dimensional
- d6: length of the 6th dimension of the array. If omitted, the array is 5 dimensional
- d7: length of the 7th dimension of the array. If omitted, the array is 6 dimensional
- d8: length of the 8th dimension of the array. If omitted, the array is 7 dimensional
- d9: length of the 9th dimension of the array. If omitted, the array is 8 dimensional
- d10: length of the 10th dimension of the array. If omitted, the array is 9 dimensional
- long d1
- [optional] VARIANT d2
- [optional] VARIANT d3
- [optional] VARIANT d4
- [optional] VARIANT d5
- [optional] VARIANT d6
- [optional] VARIANT d7
- [optional] VARIANT d8
- [optional] VARIANT d9
- [optional] VARIANT d10
Function getSize
- dim: Dimension of the array to query(0-based index).
- [optional] VARIANT dim
Function setSize
- length: Length of the specified dimension
- dim: The dimension to set (0-based index).
- long length
- [optional] VARIANT dim