Enhancement #5585

Improve flexibility of access to Variable values in SCL

Added by Reino Ruusu over 2 years ago. Updated about 2 years ago.

Status:ClosedStart date:2015-01-13
Priority:4Due date:2015-01-16
Assignee:Reino Ruusu% Done:

100%

Category:SCLSpent time:-
Target version:1.18.1
Release notes:Array, record and variant -typed values can now be accessed through Variable interfaces using any compatible SCL datatype.
Tags: scl, variable
Story points-
Velocity based estimate-
ReleaseSimantics 1.18.1Release relationshipAuto

Description

Goal: Allow array-typed values to be accessed as any compatible SCL datatype.

Change definition of functions value, possibleValue, propertyValue and possiblePropertyValue to use the Java method with a Binding argument. Allow access to bindingless method with prefix 'untyped'.

Changes are required to allow the binding be created for all possible use cases of 'value': All SCL types need to have an implementation of 'binding'. Solution is to change constraint processing for the Serializable type class so that 'binding' defaults to Bindings.OBJECT. Variable.getValue() can revert to the bindingless method, if the given binding is Bindings.OBJECT.

This enhancement allows access to array, record or variant values in any compatible SCL data type.

Associated revisions

Revision 30776
Added by tuorjr over 2 years ago

Improved flexibility of access to Variable values in SCL. (refs #5585)
Additional data conversion functionality to fromDynamic.

Revision 30777
Added by tuorjr over 2 years ago

Improved flexibility of access to Variable values in SCL. (refs #5585)
Additional data conversion functionality to fromDynamic.

Revision 30778
Added by tuorjr over 2 years ago

Improved flexibility of access to Variable values in SCL. (refs #5585)
Additional data conversion functionality to fromDynamic.

Revision 30779
Added by tuorjr over 2 years ago

Improved flexibility of access to Variable values in SCL. (refs #5585)
Additional data conversion functionality to fromDynamic.

Revision 30780
Added by tuorjr over 2 years ago

Improved flexibility of access to Variable values in SCL. (refs #5585)
Additional data conversion functionality to fromDynamic.

Revision 30781
Added by tuorjr over 2 years ago

Improved flexibility of access to Variable values in SCL. (refs #5585)
Additional data conversion functionality to fromDynamic.

Revision 30782
Added by tuorjr over 2 years ago

Improved flexibility of access to Variable values in SCL. (refs #5585)
Additional data conversion functionality to fromDynamic.

Revision 30783
Added by tuorjr over 2 years ago

Improved flexibility of access to Variable values in SCL. (refs #5585)
Additional data conversion functionality to fromDynamic.

Revision 30784
Added by tuorjr over 2 years ago

Improved flexibility of access to Variable values in SCL. (refs #5585)
Additional data conversion functionality to fromDynamic.

Revision 30785
Added by tuorjr over 2 years ago

Improved flexibility of access to Variable values in SCL. (refs #5585)
Additional data conversion functionality to fromDynamic.

Revision 30786
Added by tuorjr over 2 years ago

(refs #5585)
Small efficiency improvement to getDatatypeFromValue.
Fix to a non-workable solution to getVariantValue().

Revision 30789
Added by Hannu Niemistö over 2 years ago

(refs #5585) Minor fix to ConstraintEnvironment. Default reduction for Serializable can be applied only if the type is a ground type.

Revision 30790
Added by Tuukka Lehtonen over 2 years ago

Reverted two return statements added in r30779 from class Variables.
Otherwise the DB client may get totally stuck.

refs #5585

Revision 30793
Added by Tuukka Lehtonen over 2 years ago

Fixed os.sysdyn after the changes done to interface ValueAccessor in r30779.

refs #5585

Revision 31046
Added by Tuukka Lehtonen over 2 years ago

Prevent NPE from StandardGraphPropertyVariable.getPossiblePropertyVariableMap when dealing with variables that have no graph (configuration) representation, only solver node representation.

refs #5585

Revision 31047
Added by Tuukka Lehtonen over 2 years ago

Merged trunk@31046 to branches/simantics-1.18 on 2015-03-06 for 1.18.1 release.

refs #5585

History

#1 Updated by Tuukka Lehtonen over 2 years ago

  • Status changed from In Progress to Closed

#2 Updated by Tuukka Lehtonen about 2 years ago

  • % Done changed from 0 to 100

#3 Updated by Tuukka Lehtonen about 2 years ago

  • Release notes set to Array, record and variant -typed values can now be accessed through Variable interfaces using any compatible SCL datatype.

#4 Updated by Tuukka Lehtonen about 2 years ago

  • Tags set to scl, variable

Also available in: Atom PDF