Example #1
0
        public void Add(SoftGoal goal)
        {
            if (SoftGoals.ContainsKey(goal.Identifier))
            {
                throw new ArgumentException(string.Format("Soft goal identifier already exist: {0}", goal.Identifier));
            }

            SoftGoals.Add(goal.Identifier, goal);
        }
Example #2
0
        public override void BuildDeclare(ParsedDeclare parsedElement, KAOSModel model)
        {
            SoftGoal g = model.goalRepository.GetSoftGoal(parsedElement.Identifier);

            if (g == null)
            {
                g = new SoftGoal(model, parsedElement.Identifier);
                model.goalRepository.Add(g);
            }
            else if (!parsedElement.Override)
            {
                throw new BuilderException("Cannot declare twice the same element. Use override instead.", parsedElement);
            }
        }
 protected void Render(SoftGoal softGoal)
 {
     AddCloud(softGoal.Identifier, softGoal.FriendlyName,
              1, 1, 1, 1);
 }