sampo.schemas.landscape#

Overview#

Classes#

ResourceSupply

A class summarizing the different resources used in the work: Human resources, equipment, materials, etc.

ResourceHolder

A class summarizing the different resources used in the work: Human resources, equipment, materials, etc.

Road

A class summarizing the different resources used in the work: Human resources, equipment, materials, etc.

LandscapeConfiguration

-

MaterialDelivery

-

Classes#

class sampo.schemas.landscape.ResourceSupply(id: str, name: str, count: int)#

Bases: sampo.schemas.resources.Resource, abc.ABC

A class summarizing the different resources used in the work: Human resources, equipment, materials, etc.

abstract get_available_resources() list[tuple[int, str]]#
class sampo.schemas.landscape.ResourceHolder(id: str, name: str, productivity: sampo.schemas.interval.IntervalGaussian, materials: list[sampo.schemas.resources.Material])#

Bases: ResourceSupply

A class summarizing the different resources used in the work: Human resources, equipment, materials, etc.

property productivity#
copy()#
get_available_resources() list[tuple[int, str]]#
class sampo.schemas.landscape.Road(id: str, name: str, throughput: sampo.schemas.interval.IntervalGaussian)#

Bases: ResourceSupply

A class summarizing the different resources used in the work: Human resources, equipment, materials, etc.

property throughput#
copy()#
get_available_resources() list[tuple[int, str]]#
class sampo.schemas.landscape.LandscapeConfiguration(roads: list[Road] = [], holders: list[ResourceHolder] = [])#
get_all_resources() list[ResourceSupply]#
class sampo.schemas.landscape.MaterialDelivery(work_id: str)#
add_delivery(name: str, time: sampo.schemas.time.Time, count: int)#
add_deliveries(name: str, deliveries: list[tuple[sampo.schemas.time.Time, int]])#