Set of parameters for a MC-attribute.
inherits from
LMWrap
namespace:
lm.tasks.settings
Constructor
MCAttributeSetting()
-
Creates a new object of this class
Parameters
-
luaTable
- to store named parameters
Obligatory named parameters
-
pMCPartialGroupSetting
: MCPartialGroupSetting
- to which this attribute setting belongs
-
pAttribute
: Attribute
- that which this attribute setting refers to
Optional named parameters
-
nOrder
: integer
- position of the attribyte setting in the list of its partial group
Properties List
Methods List
Properties
Attribute
(read-only) : Attribute
-
the Attribute, this setting refers to
CategoryFractionFlag
: boolean
-
Whether centroids categories fractions allowed (for 'mean' computation)
ID
(read-only) : integer
-
Unique identifier (primary key) of the object
Intherited from: LMWrap
MCPartialGroupSetting
(read-only) : MCPartialGroupSetting
-
the MCPartialGroupSetting, this setting belongs to
Note
: string
-
Additional note to this setting
Order
: integer
-
Order-index of this setting in the list of MCPartialGroupSetting
Weight
: float
-
This attribute weight for 'mean' computation
Methods
canDel() : boolean
-
Returns true if the object could be deleted (is not used)
Intherited from: LMWrap
Returns
getAttribute() : Attribute
-
Returns the Attribute, the attribute this setting is based upon, the value of Attribute property
Returns
getID() : integer
-
Returns unique identifier (primary key) of the object
Intherited from: LMWrap
Returns
getMCCenterTypeCode() : integer
-
Returns code of center-calculation type for this attribute, see MCCenterType codes
Returns
getMCCenterTypeKey() : string
-
Returns unique string key of center-calculation type for this attribute
Returns
getMCCenterTypeName() : string
-
Returns string representation of center-calculation type for this attribute
Returns
getMCPartialGroupSetting() : MCPartialGroupSetting
-
Returns the MCPartialGroupSetting, the partial cedent this setting belongs to, the value of MCPartialGroupSetting property
Returns
getNote() : string
-
Returns the value of Note property
Returns
getOrder() : integer
-
Returns the value of Order property
Returns
isCategoryFractionFlag() : boolean
-
Returns the value of CategoryFractionFlag property
Returns
onAdd()
-
Store the newly created object into metabase
Intherited from: LMWrap
onDel()
-
Delete the object from metabase (fails if canDel returns false)
Intherited from: LMWrap
onUpdate()
-
Save changes made to the object into metabase
Intherited from: LMWrap
setAttribute( Attribute )
-
Sets the Attribute, the attribute this setting is based upon, the value of Attribute property
Parameters
setCategoryFractionFlag( boolean )
-
Sets the value of CategoryFractionFlag property
Parameters
setMCCenterTypeCode( integer )
-
Sets code of center-calculation type for this attribute, see MCCenterType codes
Parameters
setNote( string )
-
Sets the value of Note property
Parameters
setOrder( integer )
-
Sets the value of Order property
Parameters