CmUtils::Objects::Component

Components are the basic elements of Fields.

Component structure

NAME
Name of the Component
INDEX
Index number for the value of this Component in the Node array. Derivative values follow this index, and then each version is repeated as required.
VERSIONS
Number of versions of this component. Default is 1.
DERIVATIVES
Number of derivatives of this component.
DERIVNAMES
Names of the derivatives of this component.

VERSION

0.51 (15 November 2000) 0.7 (11 December 2003)

METHODS

new()

Returns a new Component.

copy()

Returns an identical copy of an existing Component.

isSame(Component)

Returns True if the Component is the same as the owner Component, otherwise returns False.

name([string])

Optional argument is name for Component. Returns the name of the Component.

valIndex([number])

Optional argument sets the index number for the value of this Component. Returns the index value of the Component.

versions([number])

Optional argument sets the number of versions of this Component. Returns the number of versions of the Component.

derivatives([number])

Optional argument sets the number of derivatives of this Component. Returns the number of derivatives of the Component.

addDerivName(string)

Add a derivative name to the end of the list of derivative names for this Component. Returns the list of derivative names of the Component.

setDerivNames(list)

Sets the list of derivative names for this Component to be the passed list of strings. Clears list if no arguments are passed. Returns the list of derivative names of the Component.

getDerivNames()

Returns the list of derivative names of the Component.

list(FH)

List the contents of this Component to the filehandle FH. Set the "verbose" flag ($s->verbose(1)) to see extended information.