Example #1
0
 /// <summary>
 ///     Constructor
 /// </summary>
 /// <param name="efsSystem"></param>
 public Targets(EfsSystem efsSystem)
     : base(efsSystem, "TARGETS")
 {
     SpeedRestrictions      = (Parameter)acceptor.getFactory().createParameter();
     SpeedRestrictions.Name = "SpeedRestrictions";
     SpeedRestrictions.Type = EFSSystem.AnyType;
     SpeedRestrictions.setFather(this);
     FormalParameters.Add(SpeedRestrictions);
 }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="efsSystem"></param>
        /// <param name="name">the name of the cast function</param>
        public DecelerationProfile(EFSSystem efsSystem)
            : base(efsSystem, "DecelerationProfile")
        {
            SpeedRestrictions      = (Parameter)Generated.acceptor.getFactory().createParameter();
            SpeedRestrictions.Name = "SpeedRestrictions";
            SpeedRestrictions.Type = EFSSystem.AnyType;
            SpeedRestrictions.setFather(this);
            FormalParameters.Add(SpeedRestrictions);

            DecelerationFactor      = (Parameter)Generated.acceptor.getFactory().createParameter();
            DecelerationFactor.Name = "DecelerationFactor";
            DecelerationFactor.Type = EFSSystem.AnyType;
            DecelerationFactor.setFather(this);
            FormalParameters.Add(DecelerationFactor);
        }