modelling.fiti
Class Rule

java.lang.Object
  extended by modelling.fiti.Rule

public class Rule
extends java.lang.Object

Class implementing a association rule.

Author:
Kjell-Inge Skogstad and Trond Řivind Eriksen

Constructor Summary
Rule(java.lang.String rule, double support, double confidence, double similarity)
          Constructor creating a new rule.
 
Method Summary
 java.lang.String getConfidence()
          Method for getting the confidence.
 java.lang.String getRule()
          Method for getting the rule.
 java.lang.String getSimilarity()
          ¨Method for getting the semantic similarity.
 java.lang.String getSupport()
          Method for getting the support.
 java.lang.String toString()
          Method for getting a string representation of the rule.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Rule

public Rule(java.lang.String rule,
            double support,
            double confidence,
            double similarity)
Constructor creating a new rule.

Parameters:
rule - The rule
support - The suppport
confidence - The confidence
Method Detail

getRule

public java.lang.String getRule()
Method for getting the rule.

Returns:
The rule

getSupport

public java.lang.String getSupport()
Method for getting the support.

Returns:
The support

getConfidence

public java.lang.String getConfidence()
Method for getting the confidence.

Returns:
The confidence

getSimilarity

public java.lang.String getSimilarity()
¨Method for getting the semantic similarity.

Returns:
The similarity

toString

public java.lang.String toString()
Method for getting a string representation of the rule.

Overrides:
toString in class java.lang.Object