public boolean canSatisfy ( TaskResources needed ) { return this . ports >= needed . ports && ( this . cpu >= needed . cpu ) && ( this . mem >= needed . mem ) && ( this . disk >= needed . disk ) ; }
Whether this resource can satisfy the TaskResources needed from parameter