Component: Computer

Computers provide a couple of API callbacks. Note that these can only be called by the computer itself, or its direct neighbors (i.e. other computers that share a face with that computer). Also note that since robots cannot interact with external components they cannot start/stop/query computers, but computers can interact with robots sitting next to them.

Component name: computer.
Callbacks:

Example use:

snippet.lua
local component = require("component")
local c = component.computer -- get primary computer, e.g. self
print(c.isRunning()) -- definitely true if it's this computer
c.stop() -- basically like computer.shutdown() if it's this computer