Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

DataCacheSpecificationWeightColumn class

From Catglobe Wiki

DataCacheSpecificationWeightColumn



Represents a DataCache specifications weight column.

Parent class

Inherits from object

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.
  • int GetCurrentNumber(string variable "Variable name.", int category "Category id.") - Get the calculated weight number for a variable's category.
  • number GetTarget(string variable "Variable name.", int 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.", int category "Category id.", number target "Target to set for the weight.") - Set the target for a variable's category.
  • (From object) 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

  • int 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.
  • Array of string PossibleVariables { get; } - List the variables available in the DCS.
  • Array of string SelectedVariables { get; } - List the current variables used to calculate this weight.
  • int TotalNumber { get; set; } - Get/Set the sum that the weight should add up to.
  • (From object) TypeInformation TypeInformation { get; } - Get information about this class.