MAGE::Array::ArrayManufactureDeviation(3pm) | User Contributed Perl Documentation | MAGE::Array::ArrayManufactureDeviation(3pm) |
Bio::MAGE::Array::ArrayManufactureDeviation - Class for the MAGE-OM API
use Bio::MAGE::Array::ArrayManufactureDeviation # creating an empty instance my $arraymanufacturedeviation = Bio::MAGE::Array::ArrayManufactureDeviation->new(); # creating an instance with existing data my $arraymanufacturedeviation = Bio::MAGE::Array::ArrayManufactureDeviation->new( adjustments=>\@zonedefect_list, propertySets=>\@namevaluetype_list, featureDefects=>\@featuredefect_list, ); # 'adjustments' association my $zonedefect_array_ref = $arraymanufacturedeviation->adjustments(); # getter $arraymanufacturedeviation->adjustments(\@zonedefect_list); # setter # 'propertySets' association my $namevaluetype_array_ref = $arraymanufacturedeviation->propertySets(); # getter $arraymanufacturedeviation->propertySets(\@namevaluetype_list); # setter # 'featureDefects' association my $featuredefect_array_ref = $arraymanufacturedeviation->featureDefects(); # getter $arraymanufacturedeviation->featureDefects(\@featuredefect_list); # setter
From the MAGE-OM documentation for the "ArrayManufactureDeviation" class:
Stores information of the potential difference between an array design and arrays that have been manufactured using that design (e.g. a tip failed to print several spots).
Bio::MAGE::Array::ArrayManufactureDeviation has the following superclasses:
The following methods can all be called without first having an instance of the class via the Bio::MAGE::Array::ArrayManufactureDeviation->methodname() syntax.
Sets the value of the "adjustments" association
The value must be of type: array of "Bio::MAGE::Array::ZoneDefect".
Sets the value of the "propertySets" association (this association was inherited from class "Bio::MAGE::Extendable").
The value must be of type: array of "Bio::MAGE::NameValueType".
Sets the value of the "featureDefects" association
The value must be of type: array of "Bio::MAGE::Array::FeatureDefect".
Parameters: if given a list of name/value parameters the corresponding slots, attributes, or associations will have their initial values set by the constructor.
Return value: It returns a reference to an object of the class.
Side effects: It invokes the "initialize()" method if it is defined by the class.
NOTE: the list of names does not include attribute or association names.
Return value: A list of the names of all slots defined for this class.
Side effects: none
Parameters: No input parameters are used in the copy constructor, the initial values are taken directly from the object to be copied.
Return value: It returns a reference to an object of the class.
Side effects: It invokes the "initialize()" method if it is defined by the class.
Return value: none
Side effects: will call "croak()" if a slot_name is used that the class does not define.
Return value: a list of instance objects
Side effects: none
Return value: the new value of the slot, i.e. $val
Side effects: none
Return value: a single slot value, or undef if the slot has not been initialized.
Side effects: none
Attributes are simple data types that belong to a single instance of a class. In the Perl implementation of the MAGE-OM classes, the interface to attributes is implemented using separate setter and getter methods for each attribute.
"Bio::MAGE::Array::ArrayManufactureDeviation" has the following attribute accessor methods:
Associations are references to other classes. Associations in MAGE-OM have a cardinality that determines the minimum and maximum number of instances of the 'other' class that maybe included in the association:
There may be one item in the association, i.e. this is an optional data field.
There must be one or more items in the association, i.e. this is a mandatory data field, with list cardinality.
There may be one or more items in the association, i.e. this is an optional data field, with list cardinality.
Bio::MAGE::Array::ArrayManufactureDeviation has the following association accessor methods:
From the MAGE-OM documentation:
Descriptions of how a Zone has been printed differently than specified in the ArrayDesign.
Input parameters: the value to which the "adjustments" association will be set : a reference to an array of objects of type "Bio::MAGE::Array::ZoneDefect"
Return value: the current value of the "adjustments" association : a reference to an array of objects of type "Bio::MAGE::Array::ZoneDefect"
Side effects: none
Exceptions: will call "croak()" if no input parameters are specified, or if too many input parameters are specified, or if $array_ref is not a reference to an array class "Bio::MAGE::Array::ZoneDefect" instances
Input parameters: none
Return value: the current value of the "adjustments" association : a reference to an array of objects of type "Bio::MAGE::Array::ZoneDefect"
Side effects: none
Exceptions: will call "croak()" if any input parameters are specified
Input parameters: the list of values @vals to add to the adjustments association. NOTE: submitting a single value is permitted.
Return value: the number of items stored in the slot after adding @vals
Side effects: none
Exceptions: will call "croak()" if no input parameters are specified, or if any of the objects in @vals is not an instance of class "Bio::MAGE::Array::ZoneDefect"
From the MAGE-OM documentation:
Allows specification of name/value pairs. Meant to primarily help in-house, pipeline processing of instances by providing a place for values that aren't part of the specification proper.
Input parameters: the value to which the "propertySets" association will be set : a reference to an array of objects of type "Bio::MAGE::NameValueType"
Return value: the current value of the "propertySets" association : a reference to an array of objects of type "Bio::MAGE::NameValueType"
Side effects: none
Exceptions: will call "croak()" if no input parameters are specified, or if too many input parameters are specified, or if $array_ref is not a reference to an array class "Bio::MAGE::NameValueType" instances
Input parameters: none
Return value: the current value of the "propertySets" association : a reference to an array of objects of type "Bio::MAGE::NameValueType"
Side effects: none
Exceptions: will call "croak()" if any input parameters are specified
Input parameters: the list of values @vals to add to the propertySets association. NOTE: submitting a single value is permitted.
Return value: the number of items stored in the slot after adding @vals
Side effects: none
Exceptions: will call "croak()" if no input parameters are specified, or if any of the objects in @vals is not an instance of class "Bio::MAGE::NameValueType"
From the MAGE-OM documentation:
Description on features who are manufactured in a different location than specified in the ArrayDesign.
Input parameters: the value to which the "featureDefects" association will be set : a reference to an array of objects of type "Bio::MAGE::Array::FeatureDefect"
Return value: the current value of the "featureDefects" association : a reference to an array of objects of type "Bio::MAGE::Array::FeatureDefect"
Side effects: none
Exceptions: will call "croak()" if no input parameters are specified, or if too many input parameters are specified, or if $array_ref is not a reference to an array class "Bio::MAGE::Array::FeatureDefect" instances
Input parameters: none
Return value: the current value of the "featureDefects" association : a reference to an array of objects of type "Bio::MAGE::Array::FeatureDefect"
Side effects: none
Exceptions: will call "croak()" if any input parameters are specified
Input parameters: the list of values @vals to add to the featureDefects association. NOTE: submitting a single value is permitted.
Return value: the number of items stored in the slot after adding @vals
Side effects: none
Exceptions: will call "croak()" if no input parameters are specified, or if any of the objects in @vals is not an instance of class "Bio::MAGE::Array::FeatureDefect"
sub initialize {
my $self = shift; return 1;
}
In the Perl implementation of MAGE-OM classes, there are three types of class data members: "slots", "attributes", and "associations".
This API uses the term "slot" to indicate a data member of the class that was not present in the UML model and is used for mainly internal purposes - use only if you understand the inner workings of the API. Most often slots are used by generic methods such as those in the XML writing and reading classes.
Slots are implemented using unified getter/setter methods:
DATA CHECKING: No data type checking is made for these methods.
The terms "attribute" and "association" indicate data members of the class that were specified directly from the UML model.
In the Perl implementation of MAGE-OM classes, association and attribute accessors are implemented using three separate methods:
NOTE: For associations, if the association has list cardinality, an array reference is returned.
DATA CHECKING: Ensure that no argument is provided.
NOTE: For associations, if the association has list cardinality, the argument must be an array reference. Because of this, you probably should be using the add* methods.
DATA CHECKING: For attributes, ensure that a single value is provided as the argument. For associations, if the association has list cardinality, ensure that the argument is a reference to an array of instances of the correct MAGE-OM class, otherwise ensure that there is a single argument of the correct MAGE-OM class.
Appends a list of objects to any values that may already be stored in the association.
DATA CHECKING: Ensure that all arguments are of the correct MAGE-OM class.
The unified base class of all MAGE-OM classes, "Bio::MAGE::Base", provides a set of generic methods that will operate on slots, attributes, and associations:
Please send bug reports to the project mailing list: (mged-mage 'at' lists 'dot' sf 'dot' net)
Jason E. Stewart (jasons 'at' cpan 'dot' org)
perl(1).
Hey! The above document had some coding errors, which are explained below:
2020-11-27 | perl v5.32.0 |