示例#1
0
        /// <summary>
        /// Method adds the constant fixed definitions into given components defintion collection.
        /// Currently it adds two definitions, decision and loop.
        /// </summary>
        /// <param name="componentsDefinitionCollection">The collection of components definition into which fixed definition are going to be added</param>
        internal static void LoadConstantDefinitionsIntoLibrary(ObservableComponentDefinitionCollection componentsDefinitionCollection)
        {
            DecisionMetadataDefinition decisionMetadataDefinition = BuildDecisionDefinition();

            componentsDefinitionCollection.Add(decisionMetadataDefinition);

            LoopMetadataDefinition loopMetadataDefinition = BuildWhileLoopDefinition();

            componentsDefinitionCollection.Add(loopMetadataDefinition);

            DecisionMetadataDefinition gotoDecisionMetadataDefinition = BuildGoToDecisionDefinition();

            componentsDefinitionCollection.Add(gotoDecisionMetadataDefinition);

            // HERZUM  SPRINT 0.0
            ScopeMetadataDefinition scopeMetadataDefinition = BuildScopeDefinition();

            componentsDefinitionCollection.Add(scopeMetadataDefinition);

            // HERZUM SPRINT 2.0: TLAB-65 CLASS
            // ScopeMetadataDefinition challengeScopeMetadataDefinition = BuildChallengeDefinition();
            // componentsDefinitionCollection.Add(challengeScopeMetadataDefinition);
            ChallengeMetadataDefinition challengeMetadataDefinition = BuildChallengeDefinition();

            componentsDefinitionCollection.Add(challengeMetadataDefinition);
            // END HERZUM SPRINT 2.0: TLAB-65 CLASS

            // END HERZUM 0.0

            // HERZUM SPRINT 1.0
            CommentMetadataDefinition commentMetadataDefinition = BuildCommentDefinition();

            componentsDefinitionCollection.Add(commentMetadataDefinition);
            // END HERZUM SPRINT 1.0
        }
示例#2
0
        // HERZUM SPRINT 2.0: TLAB-65 CLASS
        private static ChallengeMetadataDefinition  BuildChallengeDefinition()
        {
            ChallengeMetadataDefinition challengeMetadataDefinition = new ChallengeMetadataDefinition(ChallengeMetadataDefinition.ChallengeScopeGuid);

            challengeMetadataDefinition.Label = "Challenge Scope";
            challengeMetadataDefinition.Tags.SetTag("Control Structures", false);
            challengeMetadataDefinition.Description = "Challenge Scope provides way of specifying execution paths based on runtime data in the workspace.";
            return(challengeMetadataDefinition);
        }
 // HERZUM SPRINT 2.0: TLAB-65 CLASS
 private static ChallengeMetadataDefinition  BuildChallengeDefinition()
 {
     ChallengeMetadataDefinition challengeMetadataDefinition = new ChallengeMetadataDefinition (ChallengeMetadataDefinition.ChallengeScopeGuid);
     challengeMetadataDefinition.Label = "Challenge Scope";
     challengeMetadataDefinition.Tags.SetTag("Control Structures", false);
     challengeMetadataDefinition.Description = "Challenge Scope provides way of specifying execution paths based on runtime data in the workspace.";
     return challengeMetadataDefinition;
 }