Пример #1
0
 public void remove(BaseSystemProcess proc)
 {
     proc.kill();
     processes.Remove(proc);
 }
Пример #2
0
 public void assign(BaseSystemProcess process)
 {
     assignedTo = process;
 }
Пример #3
0
 public void add(BaseSystemProcess proc)
 {
     processes.Add(proc);
 }
Пример #4
0
 public List <Resource> getProcessResources(BaseSystemProcess process)
 {
     return(resourceList
            .Where(res => res.assignedTo == process)
            .ToList());
 }