Difference between revisions of "DataCacheSpecificationWeightColumn class"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "{{CGscriptClass_Template |Name=<nowiki>DataCacheSpecificationWeightColumn</nowiki> |Description=<nowiki>Represents a DataCache specifications weight column.</nowiki> |Construc...")
 
Line 11: Line 11:
 
|Methods=
 
|Methods=
 
{{CGscriptMethods_Template|ReturnType=Empty|Name=<nowiki>Delete</nowiki>|Description=<nowiki>Removes the weight from the DCS.</nowiki>}}
 
{{CGscriptMethods_Template|ReturnType=Empty|Name=<nowiki>Delete</nowiki>|Description=<nowiki>Removes the weight from the DCS.</nowiki>}}
{{CGscriptMethods_Template|ReturnType=Unknown|Name=<nowiki>GetCategories</nowiki>|Parameters=
+
{{CGscriptMethods_Template|ReturnType=Dictionary|Name=<nowiki>GetCategories</nowiki>|Parameters=
 
{{CGscriptParameters_Template|Type=string|Name=<nowiki>variable</nowiki>|Description=<nowiki>Variable name.</nowiki>}}
 
{{CGscriptParameters_Template|Type=string|Name=<nowiki>variable</nowiki>|Description=<nowiki>Variable name.</nowiki>}}
 
|Description=<nowiki>Get the ids and names of the possible categories.</nowiki>}}
 
|Description=<nowiki>Get the ids and names of the possible categories.</nowiki>}}
Line 31: Line 31:
 
|Description=<nowiki>Set the target for a variable's category.</nowiki>}}
 
|Description=<nowiki>Set the target for a variable's category.</nowiki>}}
 
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Description=<nowiki>The string representation of the object.</nowiki>}}
 
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Description=<nowiki>The string representation of the object.</nowiki>}}
 +
{{CGscriptMethods_Template|ReturnType=Empty|Name=<nowiki>UpdateCurrents</nowiki>|Description=<nowiki>Fetch the count of rows matching the categories of the current selected variables.</nowiki>}}
 
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>Validate</nowiki>|Parameters=
 
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>Validate</nowiki>|Parameters=
 
{{CGscriptParameters_Template|Type=bool|Name=<nowiki>includeWarnings</nowiki>|Description=<nowiki>Should validation also return warnings or not.</nowiki>}}
 
{{CGscriptParameters_Template|Type=bool|Name=<nowiki>includeWarnings</nowiki>|Description=<nowiki>Should validation also return warnings or not.</nowiki>}}
Line 41: Line 42:
 
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>Name</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set Name.</nowiki>}}
 
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>Name</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set Name.</nowiki>}}
 
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}}
 
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}}
{{CGscriptProperties_Template|ReturnType=Unknown|Name=<nowiki>PossibleVariables</nowiki>|HasGetter=1|Description=<nowiki>List the variables available in the DCS.</nowiki>}}
+
{{CGscriptProperties_Template|ReturnType=List of strings|Name=<nowiki>PossibleVariables</nowiki>|HasGetter=1|Description=<nowiki>List the variables available in the DCS.</nowiki>}}
{{CGscriptProperties_Template|ReturnType=Unknown|Name=<nowiki>SelectedVariables</nowiki>|HasGetter=1|Description=<nowiki>List the current variables used to calculate this weight.</nowiki>}}
+
{{CGscriptProperties_Template|ReturnType=List of strings|Name=<nowiki>SelectedVariables</nowiki>|HasGetter=1|Description=<nowiki>List the current variables used to calculate this weight.</nowiki>}}
 
{{CGscriptProperties_Template|ReturnType=number|Name=<nowiki>TotalNumber</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set the sum that the weight should add up to.</nowiki>}}
 
{{CGscriptProperties_Template|ReturnType=number|Name=<nowiki>TotalNumber</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set the sum that the weight should add up to.</nowiki>}}
 
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Description=<nowiki>Get information about this class.</nowiki>}}
 
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Description=<nowiki>Get information about this class.</nowiki>}}
 
}}
 
}}

Revision as of 09:32, 28 March 2014

DataCacheSpecificationWeightColumn



Represents a DataCache specifications weight column.

Constructors

Methods

  • Empty Delete() - Removes the weight from the DCS.
  • Dictionary GetCategories(string variable "Variable name.") - Get the ids and names of the possible categories.
  • number GetCurrentNumber(string variable "Variable name.", number category "Category id.") - Get the calculated weight number for a variable's category.
  • number GetTarget(string variable "Variable name.", number category "Category id.") - Get the target for a variable's category.
  • Empty MoveTargetsToDifferentVariable(string from "Variable name.", string to "Variable name.") - Move the current numbers and targets to another variable.
  • Empty RemoveVariable(string variable "Variable name.") - Remove a variable from the calculation.
  • Dictionary Save() - Save the weight after validation into the dcs and recalculate weight. Return value is a dictionary of all the variable values, weight values, modified sum (all arrays of numbers) and the log (string).
  • Empty SetTarget(string variable "Variable name.", number category "Category id.", number target "Target to set for the weight.") - Set the target for a variable's category.
  • string ToString() - The string representation of the object.
  • Empty UpdateCurrents() - Fetch the count of rows matching the categories of the current selected variables.
  • string Validate(bool includeWarnings "Should validation also return warnings or not.") - Validate the current configuration. Returns first error message, or Empty if no error.

Properties

  • number MaxIteration { get; set; } - Get/Set MaxIteration before stopping calculation.
  • number MaxWeight { get; set; } - Get/Set how large the largest weight can become.
  • number MinDeviation { get; set; } - Get/Set the minimum deviation before weight is considered stable.
  • number MinWeight { get; set; } - Get/Set how small the smallest weight can become.
  • string Name { get; set; } - Get/Set Name.
  • string ObjectTypeName { get; } - The name of the type of object.
  • List of strings PossibleVariables { get; } - List the variables available in the DCS.
  • List of strings SelectedVariables { get; } - List the current variables used to calculate this weight.
  • number TotalNumber { get; set; } - Get/Set the sum that the weight should add up to.
  • TypeInformation TypeInformation { get; } - Get information about this class.