Class HashSet

  • All Implemented Interfaces:
    ClassCrossReference, CrossReference, Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, QuickInfoSupporter, ShallowCopySupporter<BooleanCondition>, SizeOfHandler, Stoppable, BooleanCondition, Serializable

    public class HashSet
    extends AbstractBooleanCondition
    implements ClassCrossReference
    Evaluates to true if the payload of the current token or the specified string (if non-empty) is present in the specified hashset.
    The value gets transformed using the specified conversion.

    See also:
    adams.flow.standalone.HashSetInit
    adams.flow.transformer.HashSetInit

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -storage-name <adams.flow.control.StorageName> (property: storageName)
        The name of the hashset in the internal storage.
        default: hashset
     
    -value <java.lang.String> (property: value)
        The value (if non-empty) to look for in the hashset, takes precedence of
        the token passing through.
        default:
     
    -conversion <adams.data.conversion.Conversion> (property: conversion)
        The type of conversion to perform.
        default: adams.data.conversion.ObjectToObject
     
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_StorageName

        protected StorageName m_StorageName
        the name of the lookup table in the internal storage.
      • m_Value

        protected String m_Value
        the value to check.
      • m_Conversion

        protected Conversion m_Conversion
        the type of conversion.
    • Constructor Detail

      • HashSet

        public HashSet()
    • Method Detail

      • setStorageName

        public void setStorageName​(StorageName value)
        Sets the name for the hashset in the internal storage.
        Parameters:
        value - the name
      • getStorageName

        public StorageName getStorageName()
        Returns the name for the hashset in the internal storage.
        Returns:
        the name
      • storageNameTipText

        public String storageNameTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setValue

        public void setValue​(String value)
        Sets the (optional) value to look for in the hashset, takes precedence over the token passing through.
        Parameters:
        value - the value
      • getValue

        public String getValue()
        Returns the (optional) value to look for in the hashset, takes precedence over the token passing through.
        Returns:
        the value
      • valueTipText

        public String valueTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setConversion

        public void setConversion​(Conversion value)
        Sets the type of conversion to perform.
        Parameters:
        value - the type of conversion
      • getConversion

        public Conversion getConversion()
        Returns the type of conversion to perform.
        Returns:
        the type of conversion
      • conversionTipText

        public String conversionTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • doEvaluate

        protected boolean doEvaluate​(Actor owner,
                                     Token token)
        Performs the actual evaluation.
        Specified by:
        doEvaluate in class AbstractBooleanCondition
        Parameters:
        owner - the owning actor
        token - the current token passing through
        Returns:
        the result of the evaluation