@@ -30,8 +30,8 @@ class ExperimentForm extends React.Component{
3030 } ;
3131
3232 this . state = {
33- graphSizeFrom : 10 ,
34- graphSizeTo : 500 ,
33+ graphSizeFrom : 50 ,
34+ graphSizeTo : 100 ,
3535 graphSizeStep : 10 ,
3636 selectedProblem : defaultProblem ,
3737 selectedAlgorithms : "" ,
@@ -85,20 +85,31 @@ class ExperimentForm extends React.Component{
8585 return (
8686 < div className = "form-horizontal" >
8787 < h3 > Step 1. Generate input graphs</ h3 >
88- < GraphSizeSlider minValue = { 10 } maxValue = { 2000 } stepSize = { this . state . graphSizeStep } from = { this . state . graphSizeFrom } to = { this . state . graphSizeTo } onChange = { this . handleChangeGraphSize . bind ( this ) } />
88+ < GraphSizeSlider minValue = { 10 } maxValue = { 1000 } stepSize = { this . state . graphSizeStep } from = { this . state . graphSizeFrom } to = { this . state . graphSizeTo } onChange = { this . handleChangeGraphSize . bind ( this ) } />
8989 < h3 > Step 2. Select algorithms for experiment</ h3 >
90+ < br />
9091 < div className = "form-group" >
9192 < label className = "col-md-3" > Problem</ label >
92- < Select className = "col-md-5 " name = "problem" value = { this . state . selectedProblem } onChange = { this . handleChangeProblem . bind ( this ) } options = { this . state . graphProblems } />
93+ < Select className = "col-md-9 " name = "problem" value = { this . state . selectedProblem } onChange = { this . handleChangeProblem . bind ( this ) } options = { this . state . graphProblems } />
9394 </ div >
9495 < div className = "form-group" >
9596 < label className = "col-md-3" > Algorithms</ label >
96- < Select simpleValue className = "col-md-5 " name = "algorithms" multi onChange = { this . handleChangeAlgomithms . bind ( this ) } value = { this . state . selectedAlgorithms } options = { this . state . problemAlgorithms } />
97+ < Select simpleValue className = "col-md-9 " name = "algorithms" multi onChange = { this . handleChangeAlgomithms . bind ( this ) } value = { this . state . selectedAlgorithms } options = { this . state . problemAlgorithms } />
9798 </ div >
9899 < h3 > Step 3. Run experiment</ h3 >
99- < button onClick = { this . runAlgorithms . bind ( this ) } className = "btn btn-primary" > Run</ button >
100- < div className = "col-md-8" >
101- < ExperimentProgressBar percentComplete = { this . getProcessedGraphsPercent ( ) . toFixed ( 2 ) } />
100+ < br />
101+ < div className = "form-group" >
102+ < div className = "col-md-2" >
103+ < label > Progress:</ label >
104+ </ div >
105+ < div className = "col-md-8" >
106+ < ExperimentProgressBar percentComplete = { this . getProcessedGraphsPercent ( ) . toFixed ( 2 ) } />
107+ </ div >
108+ < div className = "col-md-2" >
109+ < a href = "#" className = "btn-sm btn-primary" onClick = { this . runAlgorithms . bind ( this ) } >
110+ < i className = "fa fa-play" aria-hidden = "true" > Run</ i >
111+ </ a >
112+ </ div >
102113 </ div >
103114 </ div > ) ;
104115 }
0 commit comments