-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMemman.java
More file actions
36 lines (32 loc) · 1 KB
/
Memman.java
File metadata and controls
36 lines (32 loc) · 1 KB
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
import java.io.FileNotFoundException;
import java.io.File;
import java.util.Scanner;
// -------------------------------------------------------------------------
/**
* The main classfor a memory manager. Creates a client to parse and
* feed commands into a memory manager.
*
* @author Joshua Rush
* @author Benjamin Roble
* @version Aug 29, 2011
*/
public class Memman
{
private static Client client;
// ----------------------------------------------------------
/**
* Creates a client to manage memory and execute commands from
* a file.
* @param args a list of arguments to execute the function.
* args[0] the memory pool size
* args[1] the size of the record array
* args[2] the filepath to the text file containing the commands.
* @throws FileNotFoundException
*/
public static void main(String[] args)
throws FileNotFoundException
{
client = new Client(Integer.valueOf(args[0]),
Integer.valueOf(args[1]), args[2]);
}
}