Class: | Parameter |
Parent: | Object |
The class Parameter provides access to the MM/MD parameters. The MM/MD parameters are either global (accessible from all Molecule object) or local (only accessible from the associated molecule). The global parameter object can be retrieved by the constant Parameter::Builtin and the class method Parameter#builtin (both returns the same value). On the other hand, the local parameter object can be obtained by Molecule#parameter.
The local parameter object does not touch the global parameter, and vice versa. The only exception is Parameter#lookup method of the local Parameter object, which may look for the global parameters as directed by the options (actually it does so by default).
There are eight types of parameters; bond, angle, dihedral, improper, vdw, vdw_pair, vdw_cutoff, and element. For detailed description of these parameter types, see "Parameter types" in the ParameterRef document.
Returns a ParEnumerable value that (formally) points to the collection of angle parameters. Parameter#angles[x] is equivalent to Parameter#angle(x).
Returns a ParEnumerable value that (formally) points to the collection of bond parameters. Parameter#bonds[x] is equivalent to Parameter#bond(x).
Returns a ParEnumerable value that (formally) points to the collection of dihedral parameters. Parameter#dihedrals[x] is equivalent to Parameter#dihedral(x).
In the first form, the idx-th element parameter record is returned. In the second form, the parameter for t1 is looked up (the last index first). t1 is a String representing the element name (up to 4 characters). Self must be a global parameter, i.e. Parameter::Builtin.
Returns a ParEnumerable value that (formally) points to the collection of element parameters. Parameter#elements[x] is equivalent to Parameter#element(x). Self must be a global parameter.
Returns a ParEnumerable value that (formally) points to the collection of improper parameters. Parameter#impropers[x] is equivalent to Parameter#improper(x).
Find the parameter record that matches the given atom types. The parameter type is given as a String, like "bond", "angle", etc. The atom types are given either as an array of string, or a single string delimited by whitespaces or hyphens. Options are given as symbols. Valid values are :global
(look for global parameters), :local
(look for local parameters), :missing
(look for missing parameters), :nowildcard
(do not allow wildcard matching), :nobasetype
(the base type does not match for the variant types). If neither :global
nor :local
is specified, it behaves as if both of these were specified.
This method is also implemented in ParEnumerable. See ParEnumerable#lookup.
Returns a ParEnumerable value that (formally) points to the collection of vdw cutoff parameters. Parameter#vdw_cutoffs[x] is equivalent to Parameter#vdw_cutoff(x).
Returns a ParEnumerable value that (formally) points to the collection of vdw pair parameters. Parameter#vdw_pairs[x] is equivalent to Parameter#vdw_pair(x).
Returns a ParEnumerable value that (formally) points to the collection of vdw parameters. Parameter#vdws[x] is equivalent to Parameter#vdw(x).