Class FakeOperation

  • All Implemented Interfaces:
    de.iip_ecosphere.platform.support.aas.Element, de.iip_ecosphere.platform.support.aas.HasDataSpecification, de.iip_ecosphere.platform.support.aas.HasKind, de.iip_ecosphere.platform.support.aas.HasSemantics, de.iip_ecosphere.platform.support.aas.Operation, de.iip_ecosphere.platform.support.aas.Qualifiable, de.iip_ecosphere.platform.support.aas.Referable, de.iip_ecosphere.platform.support.aas.SubmodelElement

    public class FakeOperation
    extends FakeElement
    implements de.iip_ecosphere.platform.support.aas.Operation
    A simple fake operation. No real arguments/parameters, just fake.
    Author:
    Holger Eichelberger, SSE
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static class  FakeOperation.FakeOperationBuilder
      A fake operation builder.
      • Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.support.aas.Operation

        de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int inArgs  
      private int inOutArgs  
      private int outArgs  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected FakeOperation​(java.lang.String idShort, int inArgs, int outArgs, int inOutArgs)
      Creates a fake operation instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(de.iip_ecosphere.platform.support.aas.AasVisitor visitor)  
      int getArgsCount()  
      int getInArgsCount()  
      int getInOutArgsCount()  
      int getOutArgsCount()  
      java.lang.Object invoke​(java.lang.Object... args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface de.iip_ecosphere.platform.support.aas.Element

        getIdShort, update
    • Field Detail

      • inArgs

        private int inArgs
      • outArgs

        private int outArgs
      • inOutArgs

        private int inOutArgs
    • Constructor Detail

      • FakeOperation

        protected FakeOperation​(java.lang.String idShort,
                                int inArgs,
                                int outArgs,
                                int inOutArgs)
        Creates a fake operation instance.
        Parameters:
        idShort - the short id
        inArgs - the number of input args
        outArgs - the number of output args
        inOutArgs - the nuber of input/output args
    • Method Detail

      • accept

        public void accept​(de.iip_ecosphere.platform.support.aas.AasVisitor visitor)
        Specified by:
        accept in interface de.iip_ecosphere.platform.support.aas.Element
      • getInArgsCount

        public int getInArgsCount()
        Specified by:
        getInArgsCount in interface de.iip_ecosphere.platform.support.aas.Operation
      • getOutArgsCount

        public int getOutArgsCount()
        Specified by:
        getOutArgsCount in interface de.iip_ecosphere.platform.support.aas.Operation
      • getInOutArgsCount

        public int getInOutArgsCount()
        Specified by:
        getInOutArgsCount in interface de.iip_ecosphere.platform.support.aas.Operation
      • getArgsCount

        public int getArgsCount()
        Specified by:
        getArgsCount in interface de.iip_ecosphere.platform.support.aas.Operation
      • invoke

        public java.lang.Object invoke​(java.lang.Object... args)
                                throws java.util.concurrent.ExecutionException
        Specified by:
        invoke in interface de.iip_ecosphere.platform.support.aas.Operation
        Throws:
        java.util.concurrent.ExecutionException