A resource object that contains information about a specific resource (such as number of cores, amount of memory, etc.). Commands contain a requiredResource and a reservedResource list, and platforms contain a list of resources. These can then be matched together when a worker requests a set of commands. The object's member variables are used directly.
Add two resource objects together.
Subtract other's resource from self.