art.cs
Class CoverDetector

java.lang.Object
  extended byart.cs.CoverDetector

public class CoverDetector
extends java.lang.Object

The cover detector ensures that at least one message received by the detector match at least one classifier. When the condition part of the classifier matches the input message, activation of the classifier occurs, i.e. the classifier puts one or more messages on the message list. In the situation in which the input message does not meet any classifier the covering procedure is employed: an input message is picked and some of its symbols are replaced with symbol \# (wildcard).

Author:
Marco Lamieri and Gianluigi Ferraris

Constructor Summary
CoverDetector(CsConfiguration conf)
          Constructor of the class.
 
Method Summary
 void fitCondition(Classifier cls, Message msg)
          Apply the cover procedure to the classifier cls.
 int getNumberOfUse()
          Number of time the cover detector has been used.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoverDetector

public CoverDetector(CsConfiguration conf)
Constructor of the class.

Method Detail

fitCondition

public void fitCondition(Classifier cls,
                         Message msg)
Apply the cover procedure to the classifier cls.

Parameters:
cls - Classifier to be covered.
msg - Message ti verify.

getNumberOfUse

public int getNumberOfUse()
Number of time the cover detector has been used.

Returns:
Number of use.