Beispiel #1
0
        /// <summary>
        /// Returns an instance of GetAlgorithmModelView representing the instance of Algorithm.
        /// </summary>
        /// <param name="restrictionAlgorithm">RestrictionAlgorithm that matches the corresponding Algorithm.</param>
        /// <returns>GetAlgorithmModelView representing the instance of Algorithm.</returns>
        public GetAlgorithmModelView getAlgorithm(RestrictionAlgorithm restrictionAlgorithm)
        {
            //this throws ArgumentOutOfRangeException if the element is not recognized by the factory
            Algorithm algorithm = new AlgorithmFactory().createAlgorithm(restrictionAlgorithm);

            return(AlgorithmModelViewService.fromEntity(algorithm));
        }