A C D G I J N O R S T V 

A

addDecision(int) - Method in class de.mgmechanics.jdecisiontablelib.dt.Rule
This method insert a new decision with value Decision.Dontcare on position nodePos
addDecision(int, Decision) - Method in class de.mgmechanics.jdecisiontablelib.dt.Rule
This method insert a given decision on position nodePos
addNode(int) - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
Adds a new node with default values (see class Node).
addRule(int) - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
Adds a new rule with default values (see class Rule).
Any2Table - Class in de.mgmechanics.jdecisiontablelib.io
Base class to inherit Decisiontable2Table and Testspecification2Table from.
Here are methods providing string conversions there same strings were needed in both, decision tables and test specifications.
Any2Table() - Constructor for class de.mgmechanics.jdecisiontablelib.io.Any2Table
Initializes all strings with default values suitable for English language i.e.
Any2Table(String, String, String, String, String, String, String, String, String, String, String, String, String) - Constructor for class de.mgmechanics.jdecisiontablelib.io.Any2Table
Initializes all strings with values given by arguments.

C

checkNodeHasYesInValidRule(boolean) - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
Check if all nodes have at least one Yes-decision in at least one valid rule.
Important: Any decision table for which this check fails can be still valid!
Therefore this check is meant for detecting possible flaws in a decision table.
checkNodeHasYesInValidRule() - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
Same as checkNodeHasYesInValidRule(true).
checkNoNodeWithDontcareOnly(boolean) - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
Checks each node if there is among all belonging decisions at least one decision which has a Yes or a No.
A node which has only "don't care" - decisions wouldn't detected neither by a check for disjunct rules nor by a check for actual / expected number of rules.

Example 1:

1    Y    Y    N
2    Y    N    -
3    N    -     -

This decision table is OK.

Example 2:

1    Y    Y    N
2     -     -     -
3    Y    N    -

This decision table is not OK because node 2 got only "don't care" decisions.

checkNoNodeWithDontcareOnly() - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
Same as checkNoNodeWithDontcareOnly(true).
checkNumberOfRules() - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
Calculates the difference between the expected and the actual number of rules.
Example 1: 2 rules found, 4 rules expected => 2 - 4 = - 2 => 2 rules missing
Example 2: 4 rules found, 4 rules expected => 4 - 4 = 0 => number of rules is OK
There is no chance to get too much rules because you can generate more rules only by (a) replacing a Yes or No by a "don't care" or (b) adding nodes.
checkRulesForBeingDisjunct(boolean) - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
Checks if all rules are disjunct.
checkRulesForBeingDisjunct() - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
Same as checkRulesForBeingDisjunct(true).
clone() - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
This method returns a clone of this decision table.
clone() - Method in class de.mgmechanics.jdecisiontablelib.dt.Node
Returns a clone of this node.
clone() - Method in class de.mgmechanics.jdecisiontablelib.dt.Rule
This method returns a clone of this rule.
clone() - Method in class de.mgmechanics.jdecisiontablelib.ts.TeststepRule
Clones this test step rule.
cloneNode(int, int) - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
Clone a node and add it to the decision table.
If sourcePos and destinationPos are equal nothing happens.
If destinationPos is out of range also nothing will happen.
cloneRule(int, int) - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
Clone a rule and add it to the decision table.
If sourcePos and destinationPos are equal nothing happens.
If destinationPos is out of range also nothing will happen.
Comparison - Enum in de.mgmechanics.jdecisiontablelib.dt
This class contains the comparisons available to the decision table.

D

de.mgmechanics.jdecisiontablelib.dt - package de.mgmechanics.jdecisiontablelib.dt
 
de.mgmechanics.jdecisiontablelib.io - package de.mgmechanics.jdecisiontablelib.io
 
de.mgmechanics.jdecisiontablelib.ts - package de.mgmechanics.jdecisiontablelib.ts
 
Decision - Enum in de.mgmechanics.jdecisiontablelib.dt
This class contains the decisions available to the decision table.
Decisiontable - Class in de.mgmechanics.jdecisiontablelib.dt
This class handles the whole decision table.
Decisiontable() - Constructor for class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
Create a new decision table with one node and one rule.
All rules and nodes will be created with default values.
Decisiontable(int, int) - Constructor for class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
Create a new decision table with a user-defined number of nodes and rules.
All rules and nodes will be created with default values.
Decisiontable(ArrayList<Rule>, ArrayList<Node>) - Constructor for class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
Create a new decision table from list of nodes and rules.
This constructor is meant for cloning a decision table only.
Decisiontable(int, ArrayList<String>) - Constructor for class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
Create a new decision table with a user-defined number of rules using a list of strings (= node names) to create nodes from.
All rules will be created with default values.
Decisiontable2Table - Class in de.mgmechanics.jdecisiontablelib.io
This class puts the data from class Decisiontable into a table of strings.
This are the data in the table:

header #1
Node,Rule,Rule,Rule ...
Node,Rule,Rule,Rule ...
footer #1
footer #2
...

With
Node=condition,name,probability,comparison
Rule=decision
and the header and footer on top/bottom we get the fields:

["VALID"|"NOT VALID"],,,,1,2,...
Decisiontable2Table(Decisiontable) - Constructor for class de.mgmechanics.jdecisiontablelib.io.Decisiontable2Table
Same as Decisiontable2Table(Decisiontable dt, String ..., String ..., ...) but this constructor provides default values for constant strings used in the table of strings suitable for English language.
Decisiontable2Table(Decisiontable, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String) - Constructor for class de.mgmechanics.jdecisiontablelib.io.Decisiontable2Table
This constructor stores the Decisiontable-object but does not create the table of strings.

G

getActualNumberOfRules() - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
Calculates the number of rules contained in this decision table by asking each rule for the number of "theoretical rules" contained in it and adding these numbers.
If there are "don't care" decisions in your decision table this number is greater than the number returned by Decisiontable.getNumRules().
getActualNumberOfRules() - Method in class de.mgmechanics.jdecisiontablelib.dt.Rule
Computes the number of "theoretical rules" in this rule.
If there are "don't care" decisions in this rule this number is greater than one.
getComparison() - Method in class de.mgmechanics.jdecisiontablelib.dt.Node
This method returns the comparison of this node.
getComparison(int) - Method in class de.mgmechanics.jdecisiontablelib.ts.TeststepRule
Returns the comparison for a given node.
getDecision(int, int) - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
This method returns the decision for a given cell in the decision table.
The cell in the decision table is named by the position of a node and a rule.
getDecision(int) - Method in class de.mgmechanics.jdecisiontablelib.dt.Rule
This method returns the decision for a given node in this rule.
getDecision(int) - Method in class de.mgmechanics.jdecisiontablelib.ts.TeststepRule
Returns the decision for a given node.
getDisjunctCheckFailed() - Method in class de.mgmechanics.jdecisiontablelib.dt.Rule
Deprecated.
This method is replaced by isCheckFailed() for having a general checkFailed flag in this class as in class Node and will be removed in the future (2014 or later).
getExpectedNumberOfRules() - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
Calculates the number of "theoretical rules" expected for this decision table.
This is done by computing 2 power of (number of nodes).
Example: If we have two nodes we expect to have 2 power of 2 = 4 rules.
So we can do a mathematical check of completeness of our decision table by comparing the expected and the actual number of decisions.
getName() - Method in class de.mgmechanics.jdecisiontablelib.dt.Node
This method returns the name (or description) of the node.
getName() - Method in class de.mgmechanics.jdecisiontablelib.ts.TeststepNode
This method returns the name (or description) of this teststep.
getNode(int) - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
This method returns a reference to the node from a given position in the decision table.
getNodesCheckFailed() - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
This method returns the positions of those nodes for which the last check failed.
getNumDecisions() - Method in class de.mgmechanics.jdecisiontablelib.dt.Rule
This method returns the number of decisions in this rule.
getNumDecisions() - Method in class de.mgmechanics.jdecisiontablelib.ts.TeststepRule
This method returns the number of decisions in the teststep rule.
getNumNodes() - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
This method returns the number of nodes in this decision table.
getNumNodes() - Method in class de.mgmechanics.jdecisiontablelib.ts.Testspecification
This method returns the number of test step nodes.
getNumRules() - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
This method returns the number of rules in this decision table.
getNumRules() - Method in class de.mgmechanics.jdecisiontablelib.ts.Testspecification
This method returns the number of test step rules.
getProbability() - Method in class de.mgmechanics.jdecisiontablelib.dt.Node
This method returns the probability in percent (%).
Please note: Since the probability is provided in percent a value of 0.01 means 1%, 0.1 means 10% and 1.0 means 100%! Otherwise it would be impossible to compute correct results without additional operations.
getProbability() - Method in class de.mgmechanics.jdecisiontablelib.ts.TeststepNode
This method returns the probability in percent (%).
Please note: Since the probability is provided in percent a value of 0.01 means 1%, 0.1 means 10% and 1.0 means 100%! Otherwise it would be impossible to compute correct results without additional operations.
getRule(int) - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
This method returns a reference to the rule from a given position in the decision table.
getRulePositionInDecisiontable() - Method in class de.mgmechanics.jdecisiontablelib.ts.TeststepRule
This method gives you the original rule position which this rule had in the decision table.
An Example: In a decision table may only rules on position 2 and 6 be valid ones.
getRulesCheckFailed() - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
Reads the result of Rule.isDisjunct(Rule other) for each rule and returns the result always as an int[2].
getRulesNotDisjunct() - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
Deprecated.
This method is replaced by getRulesCheckFailed() for having a general checkFailed flag in class Node and Rule and will be removed in the future (2014 or later).
getSuccessor() - Method in class de.mgmechanics.jdecisiontablelib.dt.Rule
This method returns the successor of this rule.
The successor usually is the file name of another decision table.
getSuccessor() - Method in class de.mgmechanics.jdecisiontablelib.ts.TeststepRule
This method returns the successor of this teststep rule.
The successor usually is the file name of another decision table.
getTestspecification(Decisiontable, boolean, boolean) - Static method in class de.mgmechanics.jdecisiontablelib.ts.Testspecification
Creates a test specification from a decision table.
A test specification consist of the test nodes and one test rule.
getTestspecification(Decisiontable) - Static method in class de.mgmechanics.jdecisiontablelib.ts.Testspecification
Creates a test specification from a decision table.
getTestStepNode(int) - Method in class de.mgmechanics.jdecisiontablelib.ts.Testspecification
This method returns the TeststepNode at given position.
getTestStepRule(int) - Method in class de.mgmechanics.jdecisiontablelib.ts.Testspecification
This method returns the TeststepRule at given position.
getValidRules() - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
Get all valid rules from the decision table.

I

isCheckFailed() - Method in class de.mgmechanics.jdecisiontablelib.dt.Node
This method tells a client that a check regarding to properties of this node failed.
isCheckFailed() - Method in class de.mgmechanics.jdecisiontablelib.dt.Rule
This method tells a client that a check regarding to properties of this node failed.
isCondition() - Method in class de.mgmechanics.jdecisiontablelib.dt.Node
This method returns if this node is either a condition or an action.
Decision tables are about "if (condition) then (action)".
isCondition() - Method in class de.mgmechanics.jdecisiontablelib.ts.TeststepNode
Tells if this teststep node is either a condition or an action.
Decision tables are about "if (condition) then (action)".
isDisjunct(Rule, boolean) - Method in class de.mgmechanics.jdecisiontablelib.dt.Rule
This method compares this rule with another rule for being disjunct.
Two rules are disjunct if one rule has a "Yes" decision at a position and the other one has "No" decision on this position.

In the following examples "-" is written for a "don't care" - , "Y" for a "Yes" - and "Y" for a "No" - decision.
Example 1 - Rule A and B are disjunct:

rule A:  Y  N  Y  -  Y
rule B:  Y  N  -  N  N
---------------------^
The arrow ---^ points to the position which makes the rules disjunct.

Example 2 - Rule C and D are not disjunct:

rule C:  Y  N  Y  -
rule D:  Y  N  -  N
isDisjunct(Rule) - Method in class de.mgmechanics.jdecisiontablelib.dt.Rule
Same as isDisjunct(Rule other, true).
isValid() - Method in class de.mgmechanics.jdecisiontablelib.dt.Rule
This method returns a flag which tells if this rule is valid or not.
isValid() - Method in class de.mgmechanics.jdecisiontablelib.ts.Testspecification
This method returns if the decision table (from which the test specification was made) was valid or not.

J

Jdtlib2Json - Class in de.mgmechanics.jdecisiontablelib.io
This class contains methods to hibernate any object from JDecisiontableLib from/to JSON.
json2decisiontable(String) - Static method in class de.mgmechanics.jdecisiontablelib.io.Jdtlib2Json
Puts a JSON in a decision table (using the Google Gson library).

N

Node - Class in de.mgmechanics.jdecisiontablelib.dt
This class handles a single node.
Node() - Constructor for class de.mgmechanics.jdecisiontablelib.dt.Node
Creates a new Node with condition=false, name="", probability=0, comparison=Comparison.EQU and checkFailed=false.
Node(String) - Constructor for class de.mgmechanics.jdecisiontablelib.dt.Node
Creates a new Node with condition=false, probability=0, comparison=Comparison.EQU, checkFailed=false and name from argument.

O

object2Json(Object) - Static method in class de.mgmechanics.jdecisiontablelib.io.Jdtlib2Json
Puts an object in a JSON (using the Google Gson library).
THIS WORKS FOR DECISION TABLES AS WELL AS FOR TEST SPECIFICATIONS.

R

removeDecision(int) - Method in class de.mgmechanics.jdecisiontablelib.dt.Rule
This method removes a decision from a node.
Please note that you need to call this method for all rules to make sure that each rule has same number of decisions! This is necessary since each node has one decision in each rule.
removeNode(int) - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
This method removes a node.
After the last node was removed a new node with default values (see class Node) will be created.
removeRule(int) - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
This method removes a rule.
After the last rule was removed a new rule with default values (see class Rule) will be created.
resetIsDisjunctFlag() - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
Deprecated.
This method is replaced by resetRuleCheckFailedFlag() for having a general checkFailed flag in class Node and Rule and will be removed in the future (2014 or later).
resetNodeCheckFailedFlag() - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
This method resets the flag checkFailed in all nodes.
resetRuleCheckFailedFlag() - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
This method resets the flag checkFailed in all rules.
Rule - Class in de.mgmechanics.jdecisiontablelib.dt
A rule consists of some decisions and some flags.
Rule(int) - Constructor for class de.mgmechanics.jdecisiontablelib.dt.Rule
Creates a Rule with valid=false, successor="" and a list of decisions with one decision=Decision.Dontcare.
runAllChecks() - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
This method runs all checks necessary to assure the technical completeness of a decision table.

S

searchLastYes() - Method in class de.mgmechanics.jdecisiontablelib.dt.Rule
This method searches for the last Decision.Yes in this rule.
setCheckFailed(boolean) - Method in class de.mgmechanics.jdecisiontablelib.dt.Node
This method tells a client that a check regarding to properties of this node failed.
setCheckFailed(boolean) - Method in class de.mgmechanics.jdecisiontablelib.dt.Rule
This method tells a client that a check regarding to properties of this rule failed.
setComparison(Comparison) - Method in class de.mgmechanics.jdecisiontablelib.dt.Node
This method sets the comparison of this node.
setComparison(int, Comparison) - Method in class de.mgmechanics.jdecisiontablelib.ts.TeststepRule
Set the comparison.
setCondition(boolean) - Method in class de.mgmechanics.jdecisiontablelib.dt.Node
This method tells if this node is either a condition or an action.
Decision tables are about "if (condition) then (action)".
setDecision(int, int, Decision) - Method in class de.mgmechanics.jdecisiontablelib.dt.Decisiontable
This method sets the decision for a given cell in the decision table.
The cell in the decision table is named by the position of a node and a rule.
setDecision(int, Decision) - Method in class de.mgmechanics.jdecisiontablelib.dt.Rule
This method inserts a decision in a rule.
setLastYesToNo() - Method in class de.mgmechanics.jdecisiontablelib.dt.Rule
This method searches for the last Decision.Yes in this rule.
setLocale(Locale) - Method in class de.mgmechanics.jdecisiontablelib.io.Any2Table
Change default locale to your locale.
setName(String) - Method in class de.mgmechanics.jdecisiontablelib.dt.Node
This method sets the name (or description) of the node.
setProbability(float) - Method in class de.mgmechanics.jdecisiontablelib.dt.Node
This method sets the probability in percent (%).
Please note: Since the probability is provided in percent a value of 0.01 means 1%, 0.1 means 10% and 1.0 means 100%! Otherwise it would be impossible to compute correct results without additional operations.
setSuccessor(String) - Method in class de.mgmechanics.jdecisiontablelib.dt.Rule
This method sets the successor of a rule.
The successor usually is the file name of another decision table.
setTestdataPlaceholder(String) - Method in class de.mgmechanics.jdecisiontablelib.io.Testspecification2Table
Sets the string for test data placeholder.
This string is something special.
setValid(boolean) - Method in class de.mgmechanics.jdecisiontablelib.dt.Rule
This method sets a rule to be valid or invalid.

T

Testspecification - Class in de.mgmechanics.jdecisiontablelib.ts
This class handles test specifications.
Testspecification(ArrayList<TeststepNode>, ArrayList<TeststepRule>) - Constructor for class de.mgmechanics.jdecisiontablelib.ts.Testspecification
Creates a test specification from a list of TestStepNodes and a list of TestStepRules.

Note that test specifications from this constructor are always marked as invalid.
Because there is no underlying decision table we can not run the tests for checking if the underlying decision table is valid.
Testspecification2Table - Class in de.mgmechanics.jdecisiontablelib.io
This class puts the data from class Testspecification into a table of strings.
This are the data in the table:

header #1
header #2
TeststepNode,TeststepRule,TeststepRule,TeststepRule ...
TeststepNode,TeststepRule,TeststepRule,TeststepRule ...
footer #1
...

With
TeststepNode=condition,name,probability
TeststepRule=decision,comparison,empty cell (the empty cell is for the test data)
and the headers and footer on top/bottom we get the fields:

["VALID"|"NOT VALID"],,,number of this rule in the decision table,,,number of this rule in the decision table,...
["VALID"|"NOT VALID"],,,1,,,2,...
condition,name,probability,decision,comparison,empty cell,decision,comparison,empty cell,...
condition,name,probability,decision,comparison,empty cell,decision,comparison,empty cell,...
,,,successor,,,successor,...
...

Calculate the number of columns:
A TeststepNode requires 3 columns as well as a TeststepRule.
Testspecification2Table(Testspecification) - Constructor for class de.mgmechanics.jdecisiontablelib.io.Testspecification2Table
Same as Testspecification2Table(Testspecification testSpec, String ..., String ..., ...) but this constructor provides default values for constant strings used in the table of strings suitable for English language.
Testspecification2Table(Testspecification, String, String, String, String, String, String, String, String, String, String, String, String, String) - Constructor for class de.mgmechanics.jdecisiontablelib.io.Testspecification2Table
Stores the Testspecification-object but does not create the table of strings.
TeststepNode - Class in de.mgmechanics.jdecisiontablelib.ts
This class handles a single test step node.
TeststepNode(boolean, String, float) - Constructor for class de.mgmechanics.jdecisiontablelib.ts.TeststepNode
Create a test step node.
TeststepRule - Class in de.mgmechanics.jdecisiontablelib.ts
A teststep rule consists of some decisions, the comparison for each decision and (maybe) the successor.
Each decision belongs to a node and tells if this node in this rule is either Yes (= true), No (= false)
or meaningless (= "don't care", thus we can not use a boolean here).
A rule may have a successor (another teststep rule from another test specification but never in the same test specification).
All teststep rules are valid (see Rule).
TeststepRule(ArrayList<Decision>, ArrayList<Comparison>, String, int) - Constructor for class de.mgmechanics.jdecisiontablelib.ts.TeststepRule
Creates a new test step rule with values from arguments.
toStringComparison(Comparison) - Method in class de.mgmechanics.jdecisiontablelib.io.Any2Table
Returns the string representation for each Comparison.
toStringDecision(Decision) - Method in class de.mgmechanics.jdecisiontablelib.io.Any2Table
Returns the string representation for each Decision.
toStringDtIsValid(boolean) - Method in class de.mgmechanics.jdecisiontablelib.io.Any2Table
Returns the string representation for the flag to tell if a decision table is valid or not.
toStringInteger(Integer) - Method in class de.mgmechanics.jdecisiontablelib.io.Any2Table
This method converts an Integer to a String.
toStringNodeIsCondition(boolean) - Method in class de.mgmechanics.jdecisiontablelib.io.Any2Table
Returns the string representation for the isCondition-flag (used in various classes to tell if a node is either an action or an condition).
toStringProbability(Float) - Method in class de.mgmechanics.jdecisiontablelib.io.Any2Table
This method converts the probability float to a string with precision of 4 decimal places.
toStringRuleIsValid(boolean) - Method in class de.mgmechanics.jdecisiontablelib.io.Decisiontable2Table
Returns the string representation for the isValid-flag used for rules.
toTableOfStrings() - Method in class de.mgmechanics.jdecisiontablelib.io.Decisiontable2Table
Creates the table of strings from stored Decisiontable-object.
toTableOfStrings() - Method in class de.mgmechanics.jdecisiontablelib.io.Testspecification2Table
Creates the table of strings from stored Testspecification-object.

V

valueOf(String) - Static method in enum de.mgmechanics.jdecisiontablelib.dt.Comparison
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum de.mgmechanics.jdecisiontablelib.dt.Decision
Returns the enum constant of this type with the specified name.
values() - Static method in enum de.mgmechanics.jdecisiontablelib.dt.Comparison
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum de.mgmechanics.jdecisiontablelib.dt.Decision
Returns an array containing the constants of this enum type, in the order they are declared.
A C D G I J N O R S T V 

Copyright © 2013. All Rights Reserved.