Exemple #1
0
        /// <summary>
        ///     Creates a new behavior characterization factory based on the given behavior characterization type.
        /// </summary>
        /// <param name="behaviorCharacterizationType">
        ///     The behavior charcterization type for which to create a new behavior
        ///     characterization factory.
        /// </param>
        /// <param name="minimalCriteria">The minimal criteria to impose upon generated behavior characterizations.</param>
        /// <returns>An instantiated behavior characterization factory.</returns>
        public static IBehaviorCharacterizationFactory GenerateBehaviorCharacterizationFactory(
            BehaviorCharacterizationType behaviorCharacterizationType, IMinimalCriteria minimalCriteria)
        {
            switch (behaviorCharacterizationType)
            {
            case BehaviorCharacterizationType.EndPoint:
                return(new EndPointBehaviorCharacterizationFactory(minimalCriteria));

            default:
                return(new TrajectoryBehaviorCharacterizationFactory(minimalCriteria));
            }
        }
Exemple #2
0
        /// <summary>
        ///     Creates a new behavior characterization based on the given behavior characterization type.
        /// </summary>
        /// <param name="behaviorCharacterizationType">
        ///     The behavior charcterization type for which to create a new behavior
        ///     characterization.
        /// </param>
        /// <returns>An instantiated behavior characterization.</returns>
        public static IBehaviorCharacterization GenerateBehaviorCharacterization(
            BehaviorCharacterizationType behaviorCharacterizationType)
        {
            switch (behaviorCharacterizationType)
            {
            case BehaviorCharacterizationType.EndPoint:
                return(new EndPointBehaviorCharacterization());

            default:
                return(new TrajectoryBehaviorCharacterization());
            }
        }
 /// <summary>
 ///     Creates a new behavior characterization factory based on the given behavior characterization type.
 /// </summary>
 /// <param name="behaviorCharacterizationType">
 ///     The behavior charcterization type for which to create a new behavior
 ///     characterization factory.
 /// </param>
 /// <param name="minimalCriteria">The minimal criteria to impose upon generated behavior characterizations.</param>
 /// <returns>An instantiated behavior characterization factory.</returns>
 public static IBehaviorCharacterizationFactory GenerateBehaviorCharacterizationFactory(
     BehaviorCharacterizationType behaviorCharacterizationType, IMinimalCriteria minimalCriteria)
 {
     switch (behaviorCharacterizationType)
     {
         case BehaviorCharacterizationType.EndPoint:
             return new EndPointBehaviorCharacterizationFactory(minimalCriteria);
         default:
             return new TrajectoryBehaviorCharacterizationFactory(minimalCriteria);
     }
 }
 /// <summary>
 ///     Creates a new behavior characterization based on the given behavior characterization type.
 /// </summary>
 /// <param name="behaviorCharacterizationType">
 ///     The behavior charcterization type for which to create a new behavior
 ///     characterization.
 /// </param>
 /// <returns>An instantiated behavior characterization.</returns>
 public static IBehaviorCharacterization GenerateBehaviorCharacterization(
     BehaviorCharacterizationType behaviorCharacterizationType)
 {
     switch (behaviorCharacterizationType)
     {
         case BehaviorCharacterizationType.EndPoint:
             return new EndPointBehaviorCharacterization();
         default:
             return new TrajectoryBehaviorCharacterization();
     }
 }