Closed
Description
Add the capability to construct a new process object given a pid: new OSProcess(pid)
.
Steps to implement:
- Write a new constructor that takes a pid as an argument, sets the
processID
attribute, and calls anupdateAttributes()
method. - Write a new public
updateAttributes()
method which calls the platform-specificgetProcess(this.processId)
and then copies all the values from the return value OSProcess to the class attributes. You'll have to switch based onSystemInfo.getCurrentPlatformEnum()
.