instancevariables -- cpu speed has only influence on the model if cycles is used
cpu1 : CPU := new CPU( <FP>, 1E9);
cpu2 : CPU := new CPU( <FP>, 1E9);
cpu3 : CPU := new CPU( <FP>, 1E9);
cpu4 : CPU := new CPU( <FP>, 1E9);
cpu5 : CPU := new CPU( <FP>, 1E9);
-- BUS speed does only have effect if large amount of data -- is transfered between CPUs
bus1 : BUS := new BUS( <FCFS>, 1E9, {cpu1}); -- steering and obs sensor
bus2 : BUS := new BUS( <FCFS>, 1E6, {cpu1,cpu2}); --sterring and mo observer
bus3 : BUS := new BUS( <FCFS>, 1E6, {cpu5,cpu1}); --sterring and datareader
bus4 : BUS := new BUS( <FCFS>, 1E6, {cpu3,cpu2}); --mo and move observer
bus5 : BUS := new BUS( <FCFS>, 1E6, {cpu4,cpu2}); --mo and move observer
private name : setofchar; publicstatic obsSensorNorth : ObstacleSensor := new ObstacleSensor(<North>); publicstatic obsSensorSouth : ObstacleSensor := new ObstacleSensor(<South>); publicstatic obsSensorEast : ObstacleSensor := new ObstacleSensor(<East>); publicstatic obsSensorWest : ObstacleSensor := new ObstacleSensor(<West>);
publicstatic dataReader : DataReader := new DataReader(); publicstatic steering : SteeringController := new SteeringController();
publicstatic mobs1 : MovingObstacle
:= new MovingObstacle(mk_Grid`Point(5,0),<West>); publicstatic mobs2 : MovingObstacle
:= new MovingObstacle(mk_Grid`Point(7,0),<West>); publicstatic mobs3 : MovingObstacle
:= new MovingObstacle(mk_Grid`Point(20,20),<West>); publicstatic mobs4 : MovingObstacle
:= new MovingObstacle(mk_Grid`Point(10,10),<South>);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.