Class OpAdaptationInfo

    • Constructor Detail

      • OpAdaptationInfo

        public OpAdaptationInfo​(OpInfo srcInfo,
                                Type type,
                                InfoTree adaptorTree)
    • Method Detail

      • priority

        public double priority()
        Specified by:
        priority in interface OpInfo
      • createOpInstance

        public StructInstance<?> createOpInstance​(List<?> dependencies)
        Specified by:
        createOpInstance in interface OpInfo
        Parameters:
        dependencies - - the list of depencies for the source Op
      • version

        public String version()
        Returns the version of the adapted Op.

        Note that adaptorInfo.version() is used as the Op returned is an inner class of the adaptor Op, and will thus have the same version as the adaptor.

        Specified by:
        version in interface OpInfo
      • id

        public String id()
        For an adapted Op, we define the implementation name as the concatenation of:
        1. The signature of the adaptor InfoTree
        2. The adaptation delimiter
        3. The implementation name of the original info

        For example, for a source com.example.foo.Bar@1.0.0 with adaptor com.example.foo.BazAdaptor@1.0.0 with delimiter |Adaptation|, you might have

        com.example.foo.BazAdaptor@1.0.0{}|Adaptation|com.example.foo.Bar@1.0.0

        Specified by:
        id in interface OpInfo