-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProcess.java
More file actions
37 lines (34 loc) · 909 Bytes
/
Process.java
File metadata and controls
37 lines (34 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* Abstraktni trida {@code Process} shrnuje obecne vlastnosti a metody procesu,
* ktere probihaji v kalendari ({@code Calendar}).
*
* @author kolovsky
* @author jmacura
* @version 1.00.000
*/
abstract class Process{
//== PROMeNNe ATRIBUTY INSTANCi ============================================
public int time;
public Node node;
public int nextWork;
//int actualFood;
//== KONSTRUKTORY A TOVaRNi METODY =========================================
/**
* Vytvori novy proces.
* @param time Simulacni cas dalsi akce.
*/
public Process(int time){
this.time = time;
}
//== ABSTRAKTNi METODY =====================================================
/**
* Provede s procesem akci.
*/
public abstract void goOn();
/**
* Vypise udaje o procesu.
* @param legend Chcete legendu informaci?
* @return Statisticka data.
*/
public abstract String toString(boolean legend);
}