public bool RuntimeValidation(ref string error)
 {
     if (!LoadNetwork())
     {
         error = "In " + Name + " we were unable to find the network data '" + AutoNetworkName + "' to use as the auto network!";
         return(false);
     }
     if (!CompareParameterCount(RegionAutoParameter))
     {
         error = "In " + Name + " the number of parameters for Auto does not match the number of regions!";
         return(false);
     }
     if (!CompareParameterCount(RegionAutoParameter))
     {
         error = "In " + Name + " the number of parameters for Auto does not match the number of regions!";
         return(false);
     }
     if (!CompareParameterCount(RegionPopulationParameter))
     {
         error = "In " + Name + " the number of parameters for Population does not match the number of regions!";
         return(false);
     }
     if (!CompareParameterCount(RegionNonManufacturingEmploymentParameter))
     {
         error = "In " + Name + " the number of parameters for Professional Employment does not match the number of regions!";
         return(false);
     }
     InteractiveModeSplit = Parent.ModeSplit as IInteractiveModeSplit;
     if (InteractiveModeSplit == null)
     {
         error = "In module '" + Name + "' we we require the mode choice for the purpose '" + Parent.PurposeName + "' to be of type IInteractiveModeSplit!";
         return(false);
     }
     return(true);
 }
Exemple #2
0
 public bool RuntimeValidation(ref string error)
 {
     InteractiveModeSplit = Parent.ModeSplit as IInteractiveModeSplit;
     if (InteractiveModeSplit == null)
     {
         error = "In module '" + Name + "' it is required that the mode choice module to be of type IInteractiveModeSplit!";
         return(false);
     }
     return(true);
 }
 public bool RuntimeValidation(ref string error)
 {
     InteractiveModeSplit = Parent.ModeSplit as IInteractiveModeSplit;
     if (InteractiveModeSplit == null)
     {
         error = "In module '" + Name + "' we we require the mode choice for the purpose '" + Parent.PurposeName + "' to be of type IInteractiveModeSplit!";
         return(false);
     }
     return(true);
 }
 public bool RuntimeValidation(ref string error)
 {
     ModeSplit = Parent.ModeSplit as IInteractiveModeSplit;
     if (ModeSplit == null)
     {
         error = "In '" + Name
                 + "' it is required that the parent module uses an IInteractive Mode Choice module!  Please contact your model system provider for assistance.";
         return(false);
     }
     return(true);
 }
 public bool RuntimeValidation(ref string error)
 {
     this.InteractiveModeSplit = this.Parent.ModeSplit as IInteractiveModeSplit;
     if ( this.InteractiveModeSplit == null )
     {
         error = "In module '" + this.Name + "' it is required that the mode choice module to be of type IInteractiveModeSplit!";
         return false;
     }
     return true;
 }
Exemple #6
0
 public bool RuntimeValidation(ref string error)
 {
     this.InteractiveModeSplit = this.Parent.ModeSplit as IInteractiveModeSplit;
     if(this.InteractiveModeSplit == null)
     {
         error = "In module '" + this.Name + "' we we require the mode choice for the purpose '" + this.Parent.PurposeName + "' to be of type IInteractiveModeSplit!";
         return false;
     }
     return true;
 }
 public bool RuntimeValidation(ref string error)
 {
     this.ModeSplit = this.Parent.ModeSplit as IInteractiveModeSplit;
     if ( this.ModeSplit == null )
     {
         error = "In '" + this.Name
             + "' it is required that the parent module uses an IInteractive Mode Choice module!  Please contact your model system provider for assistance.";
         return false;
     }
     return true;
 }
 public bool RuntimeValidation(ref string error)
 {
     if ( !LoadNetwork() )
     {
         error = "In " + this.Name + " we were unable to find the network data '" + this.AutoNetworkName + "' to use as the auto network!";
         return false;
     }
     if ( !CompareParameterCount( this.RegionAutoParameter ) )
     {
         error = "In " + this.Name + " the number of parameters for Auto does not match the number of regions!";
         return false;
     }
     if ( !CompareParameterCount( this.RegionAutoParameter ) )
     {
         error = "In " + this.Name + " the number of parameters for Auto does not match the number of regions!";
         return false;
     }
     if ( !CompareParameterCount( this.RegionPopulationParameter ) )
     {
         error = "In " + this.Name + " the number of parameters for Population does not match the number of regions!";
         return false;
     }
     if ( !CompareParameterCount( this.RegionNonManufacturingEmploymentParameter ) )
     {
         error = "In " + this.Name + " the number of parameters for Professional Employment does not match the number of regions!";
         return false;
     }
     this.InteractiveModeSplit = this.Parent.ModeSplit as IInteractiveModeSplit;
     if ( this.InteractiveModeSplit == null )
     {
         error = "In module '" + this.Name + "' we we require the mode choice for the purpose '" + this.Parent.PurposeName + "' to be of type IInteractiveModeSplit!";
         return false;
     }
     return true;
 }