Class Transformation


  • public class Transformation
    extends Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Transformation()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static <B extends de.aristaflow.adept2.model.resourcemodel.builder.ProcessStartRefBuilder>
      B
      fillProcessStartRef​(de.aristaflow.adept2.model.resourcemodel.builder.ResourceModelFactory rmf, ProcessStartRef psr, B builder)  
      protected static <B extends de.aristaflow.adept2.model.resourcemodel.builder.TimeTriggerBuilder>
      B
      fillTimeTrigger​(de.aristaflow.adept2.model.resourcemodel.builder.ResourceModelFactory rmf, TimeTrigger tt, B builder)  
      protected static <T extends UDTValue,​I extends UdtValue>
      I
      fillUdt​(T udt, I ret)  
      static UDTValue fromIlm​(de.aristaflow.adept2.model.resourcemodel.builder.ResourceModelFactory rmf, UdtValue udt)  
      protected static de.aristaflow.adept2.model.resourcemodel.Attribute fromIlm​(de.aristaflow.adept2.model.resourcemodel.builder.ResourceModelFactory rmf, Attribute attr)  
      protected static de.aristaflow.adept2.model.resourcemodel.IdentifiedUdtValue fromIlm​(de.aristaflow.adept2.model.resourcemodel.builder.ResourceModelFactory rmf, IdentifiedUdtValue udt)  
      static de.aristaflow.adept2.model.resourcemodel.Resource fromIlm​(de.aristaflow.adept2.model.resourcemodel.builder.ResourceModelFactory rmf, Resource res)  
      protected static TemporalAmount fromIlm​(String duration)  
      static UdtValue toIlm​(UDTValue udt)  
      protected static Attribute toIlm​(de.aristaflow.adept2.model.resourcemodel.Attribute a)  
      static IdentifiedUdtValue toIlm​(de.aristaflow.adept2.model.resourcemodel.IdentifiedUdtValue udt)  
      static Resource toIlm​(de.aristaflow.adept2.model.resourcemodel.Resource res)  
      static ResourceInstance toIlm​(de.aristaflow.adept2.model.resourcemodel.ResourceInstance res)  
      static IdentifiedUdtValue toIlm​(String udtRef, String udtName)  
      protected static <T extends de.aristaflow.adept2.model.resourcemodel.Attribute,​I extends Attribute>
      I
      toIlm​(T a, Supplier<I> create, BiConsumer<T,​I> transformation)
      Creates a new attribute using the designated constructor/create supplier and transforms the designated Attribute from the Java model to ILM.
    • Constructor Detail

      • Transformation

        public Transformation()
    • Method Detail

      • fromIlm

        public static de.aristaflow.adept2.model.resourcemodel.Resource fromIlm​(de.aristaflow.adept2.model.resourcemodel.builder.ResourceModelFactory rmf,
                                                                                Resource res)
        Throws:
        IllegalArgumentException - If an essential property is not set for an attribute of the designated resource, a number value cannot be parsed properly or an attribute name occurs twice in an attribute list, an IllegalArgumentException will be thrown.
      • fromIlm

        public static UDTValue fromIlm​(de.aristaflow.adept2.model.resourcemodel.builder.ResourceModelFactory rmf,
                                       UdtValue udt)
      • fromIlm

        protected static de.aristaflow.adept2.model.resourcemodel.IdentifiedUdtValue fromIlm​(de.aristaflow.adept2.model.resourcemodel.builder.ResourceModelFactory rmf,
                                                                                             IdentifiedUdtValue udt)
      • fromIlm

        protected static de.aristaflow.adept2.model.resourcemodel.Attribute fromIlm​(de.aristaflow.adept2.model.resourcemodel.builder.ResourceModelFactory rmf,
                                                                                    Attribute attr)
        Throws:
        IllegalArgumentException - If an essential property is not set for the designated attribute, a number value cannot be parsed properly or an attribute name occurs twice in an attribute list, an IllegalArgumentException will be thrown.
      • fillProcessStartRef

        protected static <B extends de.aristaflow.adept2.model.resourcemodel.builder.ProcessStartRefBuilder> B fillProcessStartRef​(de.aristaflow.adept2.model.resourcemodel.builder.ResourceModelFactory rmf,
                                                                                                                                   ProcessStartRef psr,
                                                                                                                                   B builder)
      • fillTimeTrigger

        protected static <B extends de.aristaflow.adept2.model.resourcemodel.builder.TimeTriggerBuilder> B fillTimeTrigger​(de.aristaflow.adept2.model.resourcemodel.builder.ResourceModelFactory rmf,
                                                                                                                           TimeTrigger tt,
                                                                                                                           B builder)
      • toIlm

        public static Resource toIlm​(de.aristaflow.adept2.model.resourcemodel.Resource res)
      • toIlm

        public static IdentifiedUdtValue toIlm​(de.aristaflow.adept2.model.resourcemodel.IdentifiedUdtValue udt)
      • fillUdt

        protected static <T extends UDTValue,​I extends UdtValue> I fillUdt​(T udt,
                                                                                 I ret)
      • toIlm

        public static ResourceInstance toIlm​(de.aristaflow.adept2.model.resourcemodel.ResourceInstance res)
      • toIlm

        protected static Attribute toIlm​(de.aristaflow.adept2.model.resourcemodel.Attribute a)
      • toIlm

        protected static <T extends de.aristaflow.adept2.model.resourcemodel.Attribute,​I extends Attribute> I toIlm​(T a,
                                                                                                                          Supplier<I> create,
                                                                                                                          BiConsumer<T,​I> transformation)
        Creates a new attribute using the designated constructor/create supplier and transforms the designated Attribute from the Java model to ILM.
        Type Parameters:
        T - The Attribute type from the Java model.
        I - The Attribute type in the ILM.
        Parameters:
        a - The Attribute which to transform to ILM.
        create - The (constructor) method for creating a new ILM Attribute.
        transformation - The transformation from the designated Attribute to the ILM Attribute.
        Returns:
        The ILM Attribute.