Exemple #1
0
        public override List <string> ValidityMessages(LandscapeBuilder landscapeBuilder)
        {
            List <string> messages = base.ValidityMessages(landscapeBuilder);

            if (!landscapeBuilder.CheckValidityOf(SourceID))
            {
                messages.Add("Source Layer \"" + SourceID + "\" is missing or invalid.");
            }
            else if (!landscapeBuilder.TypeOf(SourceID).Equals(typeof(S)))
            {
                messages.Add("Source \"" + SourceID + "\" is of uncompattible type.");
            }
            return(messages);
        }
Exemple #2
0
 public override bool IsValid(LandscapeBuilder landscapeBuilder)
 {
     if (!base.IsValid(landscapeBuilder))
     {
         return(false);
     }
     if (!landscapeBuilder.CheckValidityOf(SourceID))
     {
         return(false);
     }
     if (!landscapeBuilder.TypeOf(SourceID).Equals(typeof(S)))
     {
         return(false);
     }
     return(true);
 }
Exemple #3
0
        public override List <string> ValidityMessages(LandscapeBuilder landscapeBuilder)
        {
            List <string> messages = base.ValidityMessages(landscapeBuilder);

            foreach (string source in Sources)
            {
                if (!landscapeBuilder.CheckValidityOf(source))
                {
                    messages.Add("Source Layer \"" + source + "\" is missing or invalid.");
                }
                else if (!landscapeBuilder.TypeOf(source).IsSubclassOf(typeof(AlgorithmBuilder <S>)))
                {
                    messages.Add("Source \"" + source + "\" is of uncompattible type.");
                }
            }
            return(messages);
        }
Exemple #4
0
 public override bool IsValid(LandscapeBuilder landscapeBuilder)
 {
     if (!base.IsValid(landscapeBuilder))
     {
         return(false);
     }
     foreach (string source in Sources)
     {
         if (!landscapeBuilder.CheckValidityOf(source))
         {
             return(false);
         }
         if (!landscapeBuilder.TypeOf(source).IsSubclassOf(typeof(AlgorithmBuilder <S>)))
         {
             return(false);
         }
     }
     return(true);
 }