51Degrees Pipeline Python  4.1

51Degrees Pipeline for Python
  • pipeline-python
  • fiftyone_pipeline_core
  • fiftyone_pipeline_core
  • evidence
  • Evidence

pipeline-python.fiftyone_pipeline_core.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...

Public Attributes

 evidence
 flowdata

Constructor & Destructor Documentation

◆ __init__()

def pipeline-python.fiftyone_pipeline_core.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 pipeline-python.fiftyone_pipeline_core.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 pipeline-python.fiftyone_pipeline_core.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

◆ get()

def pipeline-python.fiftyone_pipeline_core.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 pipeline-python.fiftyone_pipeline_core.fiftyone_pipeline_core.evidence.Evidence.get_all (   self )

Get all evidence.

@rtype: dict

Returns
: Returns everything in this Evidence.evidence