+ /* Fill in all of the PositionLabels */
+ for (e=0; e<elevators; ++e)
+ {
+ PositionLabel *label = new PositionLabel (e);
+ position_labels_.push_back (label);
+ table_.attach (*label, e+1, e+2, floors, floors+1);
+ }
+
+
+
/* Fill in all of the Elevator Request Panels */
for (e=0; e<elevators; ++e)
{
}
// Attach the Panel
- table_.attach (*panel, e+1, e+2, floors, floors+1);
- }
-
-
-
- /* Fill in all of the PositionLabels */
- for (e=0; e<elevators; ++e)
- {
- PositionLabel *label = new PositionLabel (e);
- position_labels_.push_back (label);
- table_.attach (*label, e+1, e+2, floors+1, floors+2);
+ table_.attach (*panel, e+1, e+2, floors+1, floors+2);
}