예제 #1
0
        /// <summary>
        /// Initializes the input system by instantiating the driver with the given
        /// InputTypeID.  The input driver must be registered with the Registrar
        /// class.
        /// </summary>
        /// <param name="inputType"></param>
        public static void Initialize(InputTypeID inputType)
        {
            Core.Initialize();

            impl = Registrar.CreateInputDriver(inputType);
            impl.Initialize();

            InitializeJoysticks();
        }
예제 #2
0
파일: Dmn.cs 프로젝트: zf321/ESS.FW.Bpm
 /// <summary>
 /// 用于创建modelBuilder
 /// </summary>
 /// <param name="modelBuilder"></param>
 protected internal virtual void DoRegisterTypes(ModelBuilder modelBuilder)
 {
     //TODO Dmn类型注册
     try
     {
         AllowedAnswersImpl.RegisterType(modelBuilder);
         AllowedValuesImpl.RegisterType(modelBuilder);
         ArtifactImpl.RegisterType(modelBuilder);
         AssociationImpl.RegisterType(modelBuilder);
         AuthorityRequirementImpl.RegisterType(modelBuilder);
         BindingImpl.RegisterType(modelBuilder);
         BusinessContextElementImpl.RegisterType(modelBuilder);
         BusinessKnowledgeModelImpl.RegisterType(modelBuilder);
         ColumnImpl.RegisterType(modelBuilder);
         ContextEntryImpl.RegisterType(modelBuilder);
         ContextImpl.RegisterType(modelBuilder);
         DecisionImpl.RegisterType(modelBuilder);
         DecisionMadeReferenceImpl.RegisterType(modelBuilder);
         DecisionMakerReferenceImpl.RegisterType(modelBuilder);
         DecisionOwnedReferenceImpl.RegisterType(modelBuilder);
         DecisionOwnerReferenceImpl.RegisterType(modelBuilder);
         DecisionRuleImpl.RegisterType(modelBuilder);
         DecisionServiceImpl.RegisterType(modelBuilder);
         DecisionTableImpl.RegisterType(modelBuilder);
         DefaultOutputEntryImpl.RegisterType(modelBuilder);
         DefinitionsImpl.RegisterType(modelBuilder);
         DescriptionImpl.RegisterType(modelBuilder);
         DmnElementImpl.RegisterType(modelBuilder);
         DmnElementReferenceImpl.RegisterType(modelBuilder);
         DrgElementImpl.RegisterType(modelBuilder);
         DrgElementReferenceImpl.RegisterType(modelBuilder);
         ElementCollectionImpl.RegisterType(modelBuilder);
         EncapsulatedDecisionReferenceImpl.RegisterType(modelBuilder);
         EncapsulatedLogicImpl.RegisterType(modelBuilder);
         ExpressionImpl.RegisterType(modelBuilder);
         ExtensionElementsImpl.RegisterType(modelBuilder);
         FormalParameterImpl.RegisterType(modelBuilder);
         FunctionDefinitionImpl.RegisterType(modelBuilder);
         ImpactedPerformanceIndicatorReferenceImpl.RegisterType(modelBuilder);
         ImpactingDecisionReferenceImpl.RegisterType(modelBuilder);
         ImportImpl.RegisterType(modelBuilder);
         ImportedElementImpl.RegisterType(modelBuilder);
         ImportedValuesImpl.RegisterType(modelBuilder);
         InformationItemImpl.RegisterType(modelBuilder);
         InformationRequirementImpl.RegisterType(modelBuilder);
         InputImpl.RegisterType(modelBuilder);
         InputClauseImpl.RegisterType(modelBuilder);
         InputDataImpl.RegisterType(modelBuilder);
         InputDataReferenceImpl.RegisterType(modelBuilder);
         InputDecisionReferenceImpl.RegisterType(modelBuilder);
         InputEntryImpl.RegisterType(modelBuilder);
         InputExpressionImpl.RegisterType(modelBuilder);
         InputValuesImpl.RegisterType(modelBuilder);
         InvocationImpl.RegisterType(modelBuilder);
         ItemComponentImpl.RegisterType(modelBuilder);
         ItemDefinitionImpl.RegisterType(modelBuilder);
         ItemDefinitionReferenceImpl.RegisterType(modelBuilder);
         KnowledgeRequirementImpl.RegisterType(modelBuilder);
         KnowledgeSourceImpl.RegisterType(modelBuilder);
         ListImpl.RegisterType(modelBuilder);
         LiteralExpressionImpl.RegisterType(modelBuilder);
         ModelElementInstanceImpl.RegisterType(modelBuilder);
         NamedElementImpl.RegisterType(modelBuilder);
         OrganizationUnitImpl.RegisterType(modelBuilder);
         OutputImpl.RegisterType(modelBuilder);
         OutputClauseImpl.RegisterType(modelBuilder);
         OutputDecisionReferenceImpl.RegisterType(modelBuilder);
         OutputEntryImpl.RegisterType(modelBuilder);
         OutputValuesImpl.RegisterType(modelBuilder);
         OwnerReferenceImpl.RegisterType(modelBuilder);
         ParameterReferenceImpl.RegisterType(modelBuilder);
         PerformanceIndicatorImpl.RegisterType(modelBuilder);
         QuestionImpl.RegisterType(modelBuilder);
         RelationImpl.RegisterType(modelBuilder);
         RequiredAuthorityReferenceImpl.RegisterType(modelBuilder);
         RequiredDecisionReferenceImpl.RegisterType(modelBuilder);
         RequiredInputReferenceImpl.RegisterType(modelBuilder);
         RequiredKnowledgeReferenceImpl.RegisterType(modelBuilder);
         RowImpl.RegisterType(modelBuilder);
         RuleImpl.RegisterType(modelBuilder);
         SourceRefImpl.RegisterType(modelBuilder);
         SupportedObjectiveReferenceImpl.RegisterType(modelBuilder);
         TargetRefImpl.RegisterType(modelBuilder);
         TextImpl.RegisterType(modelBuilder);
         TextAnnotationImpl.RegisterType(modelBuilder);
         TypeImpl.RegisterType(modelBuilder);
         TypeRefImpl.RegisterType(modelBuilder);
         UnaryTestsImpl.RegisterType(modelBuilder);
         UsingProcessReferenceImpl.RegisterType(modelBuilder);
         UsingTaskReferenceImpl.RegisterType(modelBuilder);
         VariableImpl.RegisterType(modelBuilder);
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
     /// <summary>
     /// camunda extensions </summary>
 }
예제 #3
0
        public static StorageClass Parse(WordReader reader, uint wordCount)
        {
            var id = (Enumerant)reader.ReadWord();

            switch (id)
            {
            case Enumerant.UniformConstant:
                return(UniformConstantImpl.Parse(reader, wordCount - 1));

            case Enumerant.Input:
                return(InputImpl.Parse(reader, wordCount - 1));

            case Enumerant.Uniform:
                return(UniformImpl.Parse(reader, wordCount - 1));

            case Enumerant.Output:
                return(OutputImpl.Parse(reader, wordCount - 1));

            case Enumerant.Workgroup:
                return(WorkgroupImpl.Parse(reader, wordCount - 1));

            case Enumerant.CrossWorkgroup:
                return(CrossWorkgroupImpl.Parse(reader, wordCount - 1));

            case Enumerant.Private:
                return(PrivateImpl.Parse(reader, wordCount - 1));

            case Enumerant.Function:
                return(FunctionImpl.Parse(reader, wordCount - 1));

            case Enumerant.Generic:
                return(GenericImpl.Parse(reader, wordCount - 1));

            case Enumerant.PushConstant:
                return(PushConstantImpl.Parse(reader, wordCount - 1));

            case Enumerant.AtomicCounter:
                return(AtomicCounterImpl.Parse(reader, wordCount - 1));

            case Enumerant.Image:
                return(ImageImpl.Parse(reader, wordCount - 1));

            case Enumerant.StorageBuffer:
                return(StorageBufferImpl.Parse(reader, wordCount - 1));

            case Enumerant.CallableDataNV:
                return(CallableDataNVImpl.Parse(reader, wordCount - 1));

            //CallableDataKHR has the same id as another value in enum.
            //case Enumerant.CallableDataKHR :
            //    return CallableDataKHR.Parse(reader, wordCount - 1);
            case Enumerant.IncomingCallableDataNV:
                return(IncomingCallableDataNVImpl.Parse(reader, wordCount - 1));

            //IncomingCallableDataKHR has the same id as another value in enum.
            //case Enumerant.IncomingCallableDataKHR :
            //    return IncomingCallableDataKHR.Parse(reader, wordCount - 1);
            case Enumerant.RayPayloadNV:
                return(RayPayloadNVImpl.Parse(reader, wordCount - 1));

            //RayPayloadKHR has the same id as another value in enum.
            //case Enumerant.RayPayloadKHR :
            //    return RayPayloadKHR.Parse(reader, wordCount - 1);
            case Enumerant.HitAttributeNV:
                return(HitAttributeNVImpl.Parse(reader, wordCount - 1));

            //HitAttributeKHR has the same id as another value in enum.
            //case Enumerant.HitAttributeKHR :
            //    return HitAttributeKHR.Parse(reader, wordCount - 1);
            case Enumerant.IncomingRayPayloadNV:
                return(IncomingRayPayloadNVImpl.Parse(reader, wordCount - 1));

            //IncomingRayPayloadKHR has the same id as another value in enum.
            //case Enumerant.IncomingRayPayloadKHR :
            //    return IncomingRayPayloadKHR.Parse(reader, wordCount - 1);
            case Enumerant.ShaderRecordBufferNV:
                return(ShaderRecordBufferNVImpl.Parse(reader, wordCount - 1));

            //ShaderRecordBufferKHR has the same id as another value in enum.
            //case Enumerant.ShaderRecordBufferKHR :
            //    return ShaderRecordBufferKHR.Parse(reader, wordCount - 1);
            case Enumerant.PhysicalStorageBuffer:
                return(PhysicalStorageBufferImpl.Parse(reader, wordCount - 1));

            //PhysicalStorageBufferEXT has the same id as another value in enum.
            //case Enumerant.PhysicalStorageBufferEXT :
            //    return PhysicalStorageBufferEXT.Parse(reader, wordCount - 1);
            default:
                throw new IndexOutOfRangeException("Unknown StorageClass " + id);
            }
        }