Pattern (Siena 2.0.4 API Documentation)
Date: 2015-05-17

siena

## Class Pattern

- java.lang.Object
- - siena.Pattern

-     public class Pattern
      extends java.lang.Object

  a selection for a sequence of `Notification`s. A `Pattern` is a sequence of `Filter`s, matched by a sequence of notifications, each one matching the corresponding filter in the `Pattern`.

  For example a pattern [file = "hosts"]; [file = "passwd"] is matched by two events e1 and e2 such that e1 matches filter [file = "hosts"], and e1 is followed by e2, and e2 matches filter [file = "passwd"].

  See Also:
    `AttributeConstraint`, `Filter`, `Notification`

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `Filter[]` | `filters`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Pattern(Filter[] p)` creates a pattern with the given array of filters.
    `Pattern(Pattern p)` creates a (deep) copy of a given pattern.

  - ### Method Summary

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### filters

          public Filter[] filters

  - ### Constructor Detail

    - #### Pattern

          public Pattern(Filter[] p)

      creates a pattern with the given array of filters.

    - #### Pattern

          public Pattern(Pattern p)

      creates a (deep) copy of a given pattern.

Copyright © 2000-2005 University of Colorado.
Copyright © 2005-2011 Antonio Carzaniga.
This documentation is maintained by Antonio Carzaniga