Werkhalle
Home Nach oben

 

Home
Nach oben
Link
Job
Maschine
Maschine_seq
Maschinengroup
Process
Simulation
Statistic_List
Werkhalle
File Read
Report

package jobshop;
import EventSim.*;
import SingleLink.*;
import java.io.*;

/**
* Title: Werhalle
* Description: Simuliert eine Werkhalle mit Maschinengruppen und eingehenden Jobs
* Copyright: Dirk Schmit & Guido Moser Copyright (c) 2001
* Company:no
* @author: Dirk Schmitt & Guido Moser
* @version 1.0
*/

public class Werkhalle extends Simulation 
{
    static int anz_jobs; //anzahl Jobtypen
    static double ma; //mittlere ankunftszeit der Jobs
    
    public Werkhalle() {}
    
    public static void main(String[] args) 
    {
        Werkhalle werkhalle1 = new Werkhalle();
        FileRead.init();
        new Report(100).activateAt(100);
        System.out.println(Job.finalTime);
        run();
        /*while(!Job.job_list.empty())
        {
            Job j = new Job();
            Job job = (Job)Job.job_list.out();
            System.out.println("Job typ: " + job.get_id());
            System.out.println("Zwischenankunftszeit: " + job.get_a());
            while (!job.maschinensequence.empty())
            {
                Maschine_seq ms = (Maschine_seq)job.maschinensequence.out();
                System.out.println("Sequenz: " + ms.get_nextid());
                System.out.println("Bearbeitungszeit: " + ms.get_wT());
            }
            System.out.println();
        }
        while (!Maschinegroup.queue_Maschinegroup.empty())
        {
            Maschinegroup mg = (Maschinegroup)Maschinegroup.queue_Maschinegroup.out();
            System.out.println("MG Nr.: " + mg.get_id());
            while (!mg.queue_Maschine.empty())
            {
                Maschine m = (Maschine)mg.queue_Maschine.out();
                System.out.println("Anzahl der Maschinen: " + m.get_id());
                System.out.println("Erlangvariable: " + m.r);
            }
            System.out.println();
        }
        */
        System.out.println("Nu bin ich fertig "+ Job.finalTime + " " + Simulation.time());
        for(;;){}
    }
}