\r\n

51Degrees Pipeline Python  4.4

51Degrees Pipeline for Python

fiftyone_pipeline_core.evidence.Evidence Class Reference

Public Member Functions

def  __init__ (self, flowdata)
Constructor for Evidence container on a FlowData. More...
def  add (self, key, value)
Add a single piece of evidence by its element and value. More...
def  add_from_dict (self, evidence_dictionary)
Helper function to set multiple pieces of evidence from a dict. More...
def  get (self, key)
Get a piece of evidence by key. More...
def  get_all (self)
Get all evidence. More...
None  filter (self)
Filter evidence using filter_evidence_key and filter_evidence methods of each FlowElement in the pipeline. More...

Public Attributes

 evidence_filtered
 flowdata

Constructor & Destructor Documentation

◆ __init__()

def fiftyone_pipeline_core.evidence.Evidence.__init__ (   self,
  flowdata  
)

Constructor for Evidence container on a FlowData.

@type flowdata: FlowData

Parameters
flowdata - Parent FlowData

Member Function Documentation

◆ add()

def fiftyone_pipeline_core.evidence.Evidence.add (   self,
  key,
  value  
)

Add a single piece of evidence by its element and value.

@type key: string

Parameters
key - a flowElement's datakey

@type value: mixed

Parameters
value - a piece of evidence

◆ add_from_dict()

def fiftyone_pipeline_core.evidence.Evidence.add_from_dict (   self,
  evidence_dictionary  
)

Helper function to set multiple pieces of evidence from a dict.

@type evidence_dictionary: dict

Parameters
evidence_dictionary - Dict of evidence

◆ filter()

None fiftyone_pipeline_core.evidence.Evidence.filter (   self )

Filter evidence using filter_evidence_key and filter_evidence methods of each FlowElement in the pipeline.

◆ get()

def fiftyone_pipeline_core.evidence.Evidence.get (   self,
  key  
)

Get a piece of evidence by key.

@type key: string

Parameters
key - A FlowElement's datakey

@rtype: dict

Returns
: A piece of evidence

◆ get_all()

def fiftyone_pipeline_core.evidence.Evidence.get_all (   self )

Get all evidence.

@rtype: dict

Returns
: Returns everything in this Evidence.evidence

Member Data Documentation

◆ evidence

fiftyone_pipeline_core.evidence.Evidence.evidence

◆ evidence_filtered

fiftyone_pipeline_core.evidence.Evidence.evidence_filtered

◆ flowdata

fiftyone_pipeline_core.evidence.Evidence.flowdata
On This Page