Enhancement #302

Tasks #292: Fix communication with C++ baseline

Adapt converter selection

Added by J. Moringen almost 13 years ago. Updated almost 13 years ago.

Status:ResolvedStart date:05/18/2011
Priority:NormalDue date:
Assignee:J. Moringen% Done:

100%

Category:PythonEstimated time:3.00 hours
Target version:0.2

Description

Implement the following aspects which are specified in Conversion
  • Implement something like ConflictFreeConverterSet
  • Use it in
    • ParticipantConfig
    • Connectors
  • Converter options should dispatch on implementation language

Associated revisions

Revision eee6b9bb
Added by J. Moringen almost 13 years ago

Implementation-language-specific converter option names
refs #302
  • rsb/__init__.py: dispatch on implementation language when looking up
    converter selections

Revision f38ac643
Added by J. Moringen almost 13 years ago

Rewrote converter lookup logic
refs #302
  • rsb/transport/converter.py: Converter objects now store wire-type,
    wire-schema and data-type; ConverterMap supports lookup by
    wire-schema and data-type
  • rsb/transport/__init__.py: Port can now look up converters based on
    wire-schema and data-type
  • rsb/rsbspread/__init__.py: verify converter map based on wire-type;
    look up converter based on wire-schema for deserialization and
    directly based on data for
  • test/rsbspreadtest.py: adapted to changed interfaces
  • test/utiltest.py: likewise

Revision b52a6e96
Added by J. Moringen almost 13 years ago

Added class UnambiguousConverterMap in rsb/transport/converter.py
refs #302
  • rsb/transport/converter.py: added classes UnambiguousConverterMap
    which does not accept converters with identical wire-schema but
    different data types
  • test/convertertest.py: new file; initial unit tests for ConverterMap
    and UnambiguousConverterMap

Revision 7a25c781
Added by J. Moringen almost 13 years ago

Implement new converter disambiguation strategy
fixes #302
  • rsb/__init__.py: accept new implementation-language-specific
    converter selection options; construct UnambiguousConverterMap
    object based on configuration information
  • rsb/rsbspread/__init__.py: converterMap parameter of constructor is
    now mandatory
  • rsb/transport/__init__.py: likewise
  • test/rsbspreadtest.py: pass converterMap objects to constructed
    ports in all test cases

History

#1 Updated by J. Moringen almost 13 years ago

  • Parent task set to #292

#2 Updated by J. Moringen almost 13 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r1067.

Also available in: Atom PDF