IT. Expert System.

Android Reference

Filter


android.filterfw.core

Class Filter

    • Constructor Detail

      • Filter

        public Filter(String name)
    • Method Detail

      • isAvailable

        public static final boolean isAvailable(String filterName)
        Tests to see if a given filter is installed on the system. Requires full filter package name, including filterpack.
      • initWithValueMap

        public final void initWithValueMap(KeyValueMap valueMap)
      • initWithAssignmentString

        public final void initWithAssignmentString(String assignments)
      • initWithAssignmentList

        public final void initWithAssignmentList(Object... keyValues)
      • getFilterClassName

        public String getFilterClassName()
      • getName

        public final String getName()
      • isOpen

        public boolean isOpen()
      • setInputFrame

        public void setInputFrame(String inputName,
                         Frame frame)
      • setInputValue

        public final void setInputValue(String inputName,
                         Object value)
      • parametersUpdated

        protected void parametersUpdated(Set<String> updated)
      • delayNextProcess

        protected void delayNextProcess(int millisecs)
      • setupPorts

        public abstract void setupPorts()
      • getSleepDelay

        public final int getSleepDelay()
      • getNumberOfConnectedInputs

        public final int getNumberOfConnectedInputs()
      • getNumberOfConnectedOutputs

        public final int getNumberOfConnectedOutputs()
      • getNumberOfInputs

        public final int getNumberOfInputs()
      • getNumberOfOutputs

        public final int getNumberOfOutputs()
      • pushOutput

        protected final void pushOutput(String name,
                      Frame frame)
      • pullInput

        protected final Frame pullInput(String name)
      • transferInputPortFrame

        protected void transferInputPortFrame(String name,
                                  FilterContext context)
        Transfers any frame from an input port to its destination. This is useful to force a transfer from a FieldPort or ProgramPort to its connected target (field or program variable).
      • initProgramInputs

        protected void initProgramInputs(Program program,
                             FilterContext context)
        Assigns all program variables to the ports they are connected to. Call this after constructing a Program instance with attached ProgramPorts.
      • addInputPort

        protected void addInputPort(String name)
        Adds an input port to the filter. You should call this from within setupPorts, if your filter has input ports. No type-checking is performed on the input. If you would like to check against a type mask, use addMaskedInputPort instead.
        Parameters:
        name - the name of the input port
      • addMaskedInputPort

        protected void addMaskedInputPort(String name,
                              FrameFormat formatMask)
        Adds an input port to the filter. You should call this from within setupPorts, if your filter has input ports. When type-checking is performed, the input format is checked against the provided format mask. An exception is thrown in case of a conflict.
        Parameters:
        name - the name of the input port
        formatMask - a format mask, which filters the allowable input types
      • addOutputPort

        protected void addOutputPort(String name,
                         FrameFormat format)
        Adds an output port to the filter with a fixed output format. You should call this from within setupPorts, if your filter has output ports. You cannot use this method, if your output format depends on the input format (e.g. in a pass-through filter). In this case, use addOutputBasedOnInput instead.
        Parameters:
        name - the name of the output port
        format - the fixed output format of this port
      • addOutputBasedOnInput

        protected void addOutputBasedOnInput(String outputName,
                                 String inputName)
        Adds an output port to the filter. You should call this from within setupPorts, if your filter has output ports. Using this method indicates that the output format for this particular port, depends on the format of an input port. You MUST also override getOutputFormat to specify what format your filter will output for a given input. If the output format of your filter port does not depend on the input, use addOutputPort instead.
        Parameters:
        outputName - the name of the output port
        inputName - the name of the input port, that this output depends on
      • addFieldPort

        protected void addFieldPort(String name,
                        Field field,
                        boolean hasDefault,
                        boolean isFinal)
      • addProgramPort

        protected void addProgramPort(String name,
                          String varName,
                          Field field,
                          Class varType,
                          boolean hasDefault)
      • closeOutputPort

        protected void closeOutputPort(String name)
      • setWaitsOnInputPort

        protected void setWaitsOnInputPort(String portName,
                               boolean waits)
        Specifies whether the filter should not be scheduled until a frame is available on that input port. Note, that setting this to false, does not block a new frame from coming in (though there is no necessity to pull that frame for processing).
        Parameters:
        portName - the name of the input port.
        waits - true, if the filter should wait for a frame on this port.
      • setWaitsOnOutputPort

        protected void setWaitsOnOutputPort(String portName,
                                boolean waits)
        Specifies whether the filter should not be scheduled until the output port is free, i.e. there is no frame waiting on that output.
        Parameters:
        portName - the name of the output port.
        waits - true, if the filter should wait for the port to become free.
      • toString

        public String toString()
        Description copied from class: Object
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 559 / . Delta: 0.03878 с