Package

com.getjenny.analyzer

atoms

Permalink

package atoms

Visibility
  1. Public
  2. All

Type Members

  1. abstract class AbstractAtomic extends Expression

    Permalink

    These are the Atomic components of Analyzer.

    These are the Atomic components of Analyzer. Atomic can be for instance a Pattern (i.e. a Regex) or a Similarity. Atomics can be composed in Analyzers through Operators, like:

    AND(regex > 0, similarity > 0.9)

    NB New atomic must be registered in

  2. class CheckDayOfMonthAtomic extends AbstractAtomic

    Permalink

    Check if the current time is Equal, LessOrEqual, Less, Greater, GreaterOrEqual to the argument which is an integer between 1 and 31

    Check if the current time is Equal, LessOrEqual, Less, Greater, GreaterOrEqual to the argument which is an integer between 1 and 31

    first argument is the day of the month: a number between 1 and 31 second argument is the operator: any of Equal, LessOrEqual, Less, Greater, GreaterOrEqual third argument is the timezone: UTC, GMT, UT, CET, UTC+<N>, UTC-<N>, GMT+<N>, GMT-<N>, UT+<N> or UT-<N> where N is a number between -18 and +18. Default is CET

  3. class CheckDayOfWeekAtomic extends AbstractAtomic

    Permalink

    Check if the current time is Equal, LessOrEqual, Less, Greater, GreaterOrEqual to the argument which is an integer between 1 (MONDAY) and 7 (SUNDAY)

    Check if the current time is Equal, LessOrEqual, Less, Greater, GreaterOrEqual to the argument which is an integer between 1 (MONDAY) and 7 (SUNDAY)

    first argument is the day of the week: a number between 1 and 7 second argument is the operator: any of Equal, LessOrEqual, Less, Greater, GreaterOrEqual third argument is the timezone: UTC, GMT, UT, CET, UTC+<N>, UTC-<N>, GMT+<N>, GMT-<N>, UT+<N> or UT-<N> where N is a number between -18 and +18. Default is CET

  4. class CheckHourAtomic extends AbstractAtomic

    Permalink

    Check if the current time is Equal, LessOrEqual, Less, Greater, GreaterOrEqual to the argument time in EPOC

    Check if the current time is Equal, LessOrEqual, Less, Greater, GreaterOrEqual to the argument time in EPOC

    first argument is the hour: a number between 0 and 23 second argument is the operator: any of Equal, LessOrEqual, Less, Greater, GreaterOrEqual third argument is the timezone: UTC, GMT, UT, CET, UTC+<N>, UTC-<N>, GMT+<N>, GMT-<N>, UT+<N> or UT-<N> where N is a number between -18 and +18. Default is CET

  5. class CheckMinuteAtomic extends AbstractAtomic

    Permalink

    Check if the current minutes are Equal, LessOrEqual, Less, Greater, GreaterOrEqual to the first argument

    Check if the current minutes are Equal, LessOrEqual, Less, Greater, GreaterOrEqual to the first argument

    first argument is the minute: a number between 0 and 59 second argument is the operator: any of Equal, LessOrEqual, Less, Greater, GreaterOrEqual third argument is the timezone: UTC, GMT, UT, CET, UTC+<N>, UTC-<N>, GMT+<N>, GMT-<N>, UT+<N> or UT-<N> where N is a number between -18 and +18. Default is CET

  6. class CheckMonthAtomic extends AbstractAtomic

    Permalink

    Check if the current month is Equal, LessOrEqual, Less, Greater, GreaterOrEqual to the argument which is an integer between 1 (JANUARY) and 12 (DECEMBER)

    Check if the current month is Equal, LessOrEqual, Less, Greater, GreaterOrEqual to the argument which is an integer between 1 (JANUARY) and 12 (DECEMBER)

    first argument is the month's number: an integer between 1 and 12 second argument is the operator: any of Equal, LessOrEqual, Less, Greater, GreaterOrEqual third argument is the timezone: UTC, GMT, UT, CET, UTC+<N>, UTC-<N>, GMT+<N>, GMT-<N>, UT+<N> or UT-<N> where N is a number between -18 and +18. Default is CET

  7. class CheckTimestampAtomic extends AbstractAtomic

    Permalink

    Check if the current time is Equal, LessOrEqual, Less, Greater, GreaterOrEqual to the argument time in EPOC

    Check if the current time is Equal, LessOrEqual, Less, Greater, GreaterOrEqual to the argument time in EPOC

    first argument is the timestamp: a timestamp in EPOC (in seconds) second argument is the operator: any of Equal, LessOrEqual, Less, Greater, GreaterOrEqual

  8. class CosineDistanceAnalyzer extends AbstractAtomic

    Permalink

    calculate the cosine distance between vectors of keywords

  9. class DefaultFactoryAtomic extends AtomicFactoryTrait[List[String], AbstractAtomic, Map[String, String]]

    Permalink
  10. class DoubleNumberAtomic extends AbstractAtomic

    Permalink

    Double Atomic

    Double Atomic

    argument is a double number

  11. case class ExceptionAtomic(message: String = "", cause: Throwable = None.orNull) extends Exception with Product with Serializable

    Permalink

    Created by Angelo Leto <[email protected]> on 03/03/17.

  12. class ExistsVariableAtomic extends AbstractAtomic

    Permalink

    test if a variable exists on dictionary of variables

  13. class HasTravStateAtomic extends AbstractAtomic

    Permalink

    test if the list of traversed states contains a state, eg

    test if the list of traversed states contains a state, eg

    hasTravState("help")

  14. class KeywordAtomic extends AbstractAtomic

    Permalink

    Basically a word separated from the others.

    Basically a word separated from the others. E.g.: "foo" matches "foo and bar" but not "fooish and bar" "foo.*" matches "pippo and pluto" and "fooish and bar"

  15. class LastTravStateIsAtomic extends AbstractAtomic

    Permalink

    test the value of the last traversed state

  16. class MatchDateDDMMYYYYAtomic extends AbstractAtomic

    Permalink

    Analyzer for the extraction of dates from queries

  17. class MatchPatternRegexAtomic extends AbstractAtomic

    Permalink

    A generic pattern extraction analyzer, it extract named patterns matching a given regex e.g.

    A generic pattern extraction analyzer, it extract named patterns matching a given regex e.g. the following will match tree numbers separated by semicolumn: [first,second,third](?:([0-9]+:[0-9]:[0-9]+) if the regex matches it will create the entries into the dictionary e.g.: 10:11:12 will result in Map("first.0" -> "10", "second.0" -> "11", "third.0" -> "12") the number at the end of the name is an index incremented for multiple occurrences of the pattern in the query

  18. class PrevTravStateIsAtomic extends AbstractAtomic

    Permalink

    test the value of the penultimate traversed state

  19. class RegularExpressionAtomic extends AbstractAtomic

    Permalink

    Counts the occurrences of a pattern into a string

Ungrouped