代码搜索结果
找到约 10,000 项符合
State Machine 的代码
machine.java
// PART OF THE MACHINE SIMULATION. DO NOT CHANGE.
package nachos.machine;
import nachos.security.*;
import nachos.ag.*;
import java.io.File;
/**
* The master class of the simulated machine. Proce
machine.v
//{{ Section below this comment is automatically maintained
// and may be overwritten
//{module {machine}}
module machine (clk, opcode, d1_in, reset, r, w, h, r_r, w_r, d1_ena, load_ir, load_pc,
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.h
// struct used in machine shop simulation
#ifndef machine_
#define machine_
#include "arrayQueue.h"
#include "job.h"
using namespace std;
struct machine
{
arrayQueue jobQ;
machine.dpr
program machine;
uses
Forms,
Unit1 in 'Unit1.pas' {Form1};
{$R *.res}
begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
machine.mdl
Model {
Name "machine"
Version 6.3
MdlSubVersion 0
GraphicalInterface {
NumRootInports 3
Inport {
Name "USabc"
}
Inport {
Name