51Degrees Pipeline Python  4.1

51Degrees Pipeline for Python
  • pipeline-python
  • fiftyone_pipeline_engines
  • fiftyone_pipeline_engines
  • engine
  • Engine

pipeline-python.fiftyone_pipeline_engines.fiftyone_pipeline_engines.engine.Engine Class Reference

Detailed Description

An engine is an extension of the FlowElement class that adds extra functionality.

Inheritance diagram for pipeline-python.fiftyone_pipeline_engines.fiftyone_pipeline_engines.engine.Engine:

[legend]

Collaboration diagram for pipeline-python.fiftyone_pipeline_engines.fiftyone_pipeline_engines.engine.Engine:

[legend]

Public Member Functions

def  __init__ (self)
def  set_cache (self, cache)
Add a cache to an engine @type casee: Cache. More...
def  set_restricted_properties (self, properties_list)
Add a subset of properties. More...
def  in_cache (self, flowData)
A method to check if a flowData's evidence is in the cache. More...
def  process (self, flowdata)
Engine's core process function. More...

Public Attributes

 cache
 restricted_properties

Member Function Documentation

◆ in_cache()

def pipeline-python.fiftyone_pipeline_engines.fiftyone_pipeline_engines.engine.Engine.in_cache (   self,
  flowData  
)

A method to check if a flowData's evidence is in the cache.

@type FlowData: FlowData

Parameters
FlowData - @rtype: bool
Returns
: True or false: a flowData's evidence is in the cache

◆ process()

def pipeline-python.fiftyone_pipeline_engines.fiftyone_pipeline_engines.engine.Engine.process (   self,
  flowdata  
)

Engine's core process function.

Calls specific overriden processInternal methods but wraps it in a cache check and a cache put

@type flowdata: FlowData

Parameters
flowData -

◆ set_cache()

def pipeline-python.fiftyone_pipeline_engines.fiftyone_pipeline_engines.engine.Engine.set_cache (   self,
  cache  
)

Add a cache to an engine @type casee: Cache.

Parameters
cache - Cache with get and set methods

◆ set_restricted_properties()

def pipeline-python.fiftyone_pipeline_engines.fiftyone_pipeline_engines.engine.Engine.set_restricted_properties (   self,
  properties_list  
)

Add a subset of properties.

@type properties_list: string[]

Parameters
properties_list - An array of properties to include