Subversion Repositories programming

Rev

Rev 415 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 415 Rev 418
Line 34... Line 34...
34
public class LogEntry
34
public class LogEntry
35
{
35
{
36
    /** Message types that are possible */
36
    /** Message types that are possible */
37
    public static enum MsgType
37
    public static enum MsgType
38
    {
38
    {
-
 
39
        /** Represents a Process entering the run queue */
-
 
40
        ADDED,
-
 
41
 
39
        /** Represents a Process starting on the CPU */
42
        /** Represents a Process starting on the CPU */
40
        START,
43
        START,
41
 
44
 
42
        /** Represents a Process completing this timeslice on the CPU,
45
        /** Represents a Process completing this timeslice on the CPU,
43
         * but not being completely finished yet.
46
         * but not being completely finished yet.
Line 80... Line 83...
80
    {
83
    {
81
        String action = new String ("invalid");
84
        String action = new String ("invalid");
82
 
85
 
83
        switch (msg)
86
        switch (msg)
84
        {
87
        {
-
 
88
            case ADDED:
-
 
89
                action = "added";
-
 
90
                break;
85
            case START:
91
            case START:
86
                action = "started";
92
                action = "started";
87
                break;
93
                break;
88
            case EXPIRE:
94
            case EXPIRE:
89
                action = "expired";
95
                action = "expired";