Example #1
0
        /// <summary>
        /// Runs the demo mode.
        /// </summary>
        /// <param name="args"></param>
        public override void Run( string[] args )
        {
            if ( Solve ) {
            this.ParseArgs( args );
              }
              if ( Demo.Equals( "presentation" ) ) {
            ( vis as OpenGLStateVisualizer ).Presentation( false, false, false );
              } else if ( Demo.Equals( "presentation-doors" ) ) {
            ( vis as OpenGLStateVisualizer ).Presentation( true, true, false );
              } else if ( Demo.Equals( "presentation-questions" ) ) {
            ( vis as OpenGLStateVisualizer ).Presentation( false, true, true );
              } else if ( Demo.Equals( "none" ) ) {

              }
              try {
            Loader.LOS = LOS;
            var AR = new AlgorithmRunner( filestream,
              Loader, Algorithm,
              new Metric( Weight ), false, vis, Seed );
            if ( Solve ) {
              var SOL = AR.Solve( null );
              OptimalPathLenth = SOL.Path.Cost;
            }
            AR.Resultss = Resultss;
            Results = AR.Run( refreshRate, false, 1000, Algorithm,
              computationLimit, OptimalPathLenth, file, Dynamic );
            System.Console.WriteLine( Results );
              } catch ( PathNotFoundException ) {
            System.Console.Out.WriteLine( "Path Not Found" );
              }
        }
Example #2
0
 public MaxPathLengthExceded( Results Results )
 {
     this.Results = Results;
 }