Esempio n. 1
0
        }         // GetRejectionInputData

        /// <summary>
        /// Main logic flow function to determine weather to auto reject the customer or not
        /// </summary>
        /// <param name="data">rejection input data</param>
        public void MakeDecision(RejectionInputData data)
        {
            Trail.Init(data);

            this.log.Debug("Secondary: checking if auto reject should take place for customer {0}...", this.customerId);

            try {
                CheckRejectionExceptions();
                Trail.LockDecision();
                CheckRejections();
            } catch (Exception e) {
                this.log.Error(e, "Exception during auto rejection.");
                StepNoDecision <ExceptionThrown>().Init(e);
            }             // try

            Trail.HasApprovalChance =
                (!this.lowPersonalScore || !this.lowBusinessScore) &&
                !this.unresolvedPersonalDefaults &&
                !this.companyTooYoung;

            Trail.DecideIfNotDecided();

            this.log.Debug(
                "Secondary: checking if auto reject should take place for customer {0} complete; {1}",
                this.customerId,
                Trail
                );
        }         // MakeDecision
Esempio n. 2
0
    void Start()
    {
        initialPosition = transform.position;
        initialRotation = transform.rotation;

        startMarker = Instantiate(carStartPrefab, transform.position, Quaternion.identity).GetComponent <StartMarker>();
        startMarker.transform.Rotate(new Vector3(90f, 0, 0));
        startMarker.Init(this, color);

        trail = Instantiate(trailPrefab, Vector3.zero, Quaternion.identity).GetComponent <Trail>();
        trail.Init(this, plane, linkedParking);
    }