代码搜索结果
找到约 10,000 项符合
State Machine 的代码
machine.dat
3 6
2 0 1
3
1 2 2 4 3 3
2
2 2 1 4
4
3 6 2 1 3 2 1 3
2
1 3 2 4
1
1 2
5
2 2 1 2 3 3 1 1 2 3
machine.cpp
// machine shop simulation
#include
#include "lqueue.h"
#include "xcept.h"
#include "job.h"
#include "machine.h"
#include "eventl.h"
// globals
long Now = 0; // curr
machine.out
Enter number of machines and jobs
Enter change-over times for machines
Enter number of tasks for job 1
Enter the tasks (machine, time) in process order
Enter number of tasks for job 2
Enter the t
machine.h
//Machine class used in machine shop simulation
#ifndef Machine_
#define Machine_
class Machine {
friend Job* ChangeState(int);
public:
Machine() {TotalWait = NumTasks = 0;
machine.cpp
#include "Machine.h"
#include
Machine::Machine()
{
}
Machine::~Machine()
{
}
void Machine::explain()
{
printf("phane can machine\n");
}
machine.h
#ifndef MACHINE_H
#define MACHINE_H
class Machine
{
public:
Machine();
~Machine();
void explain();
};
#endif
machine.cc
// machine.cc
// Routines for simulating the execution of user programs.
//
// DO NOT CHANGE -- part of the machine emulation
//
// Copyright (c) 1992-1993 The Regents of the University of Californi
machine.h
// machine.h
// Data structures for simulating the execution of user programs
// running on top of Nachos.
//
// User programs are loaded into "mainMemory"; to Nachos,
// this looks just like an arra
machine.dat
3 6
2 0 1
3
1 2 2 4 3 3
2
2 2 1 4
4
3 6 2 1 3 2 1 3
2
1 3 2 4
1
1 2
5
2 2 1 2 3 3 1 1 2 3
machine.cpp
// machine shop simulation
#include
#include "lqueue.h"
#include "xcept.h"
#include "job.h"
#include "machine.h"
#include "eventl.h"
// globals
long Now = 0; // curr