Package horizons :: Package world :: Package units :: Package collectors :: Module collector :: Class Job
[hide private]
[frames] | no frames]

Class Job

source code

Data structure for storing information of collector jobs

Instance Methods [hide private]
 
__init__(self, obj, reslist) source code
 
amount_sum(self) source code
 
resources(self) source code
 
target_inventory_full_num(self) source code
 
__str__(self) source code
Class Variables [hide private]
  ResListEntry = namedtuple("ResListEntry", ["res", "amount", "t...
Method Details [hide private]

__init__(self, obj, reslist)
(Constructor)

source code 
Parameters:
  • obj - ResourceHandler that provides res
  • reslist - ResListEntry list res: resource to get amount: amount of resource to get target_inventory_full: whether target inventory can't store any more of this res.

amount_sum(self)

source code 
Decorators:
  • @decorators.cachedproperty

resources(self)

source code 
Decorators:
  • @decorators.cachedproperty

target_inventory_full_num(self)

source code 
Decorators:
  • @decorators.cachedproperty

Class Variable Details [hide private]

ResListEntry

Value:
namedtuple("ResListEntry", ["res", "amount", "target_inventory_full"])