lbaf.Model.lbsRank.Rank class

A class representing a rank to which objects are assigned.

Methods

def _Rank__get_qoi_name(self, qoi_ftn) -> str
Return the QOI name from the given QOI getter function
def add_migratable_object(self, o: lbsObject.Object, fallback_collection_id: typing.Optional[int] = 7) -> None
Add object to migratable objects.
def add_sentinel_object(self, o: lbsObject.Object) -> None
Add object to sentinel objects.
def add_shared_block(self, block: lbsBlock.Block)
Add rank shared memory block.
def copy(self, rank)
Specialized copy method.
def delete_shared_block(self, block: lbsBlock.Block)
Try to delete shared memory block.
def get_homed_blocks_ratio(*args, **kwargs)
def get_id(*args, **kwargs)
def get_load(*args, **kwargs)
def get_max_memory_usage(*args, **kwargs)
def get_max_object_level_memory(*args, **kwargs)
def get_metadata(self) -> dict
Return original metadata.
def get_migratable_load(*args, **kwargs)
def get_migratable_object_ids(self) -> list
Return IDs of migratable objects assigned to rank.
def get_migratable_objects(self) -> set
Return migratable objects assigned to rank.
def get_number_of_homed_blocks(*args, **kwargs)
def get_number_of_migratable_objects(*args, **kwargs)
def get_number_of_objects(*args, **kwargs)
def get_number_of_sentinel_objects(*args, **kwargs)
def get_number_of_shared_blocks(*args, **kwargs)
def get_number_of_uprooted_blocks(*args, **kwargs)
def get_object_ids(self) -> list
Return IDs of all objects assigned to rank.
def get_objects(self) -> set
Return all objects assigned to rank.
def get_qois(self) -> list
Get all methods decorated with the QOI decorator.
def get_received_volume(*args, **kwargs)
def get_sent_volume(*args, **kwargs)
def get_sentinel_load(*args, **kwargs)
def get_sentinel_object_ids(self) -> list
Return IDs of sentinel objects assigned to rank.
def get_sentinel_objects(self) -> set
Return sentinel objects assigned to rank.
def get_shared_block_with_id(self, b_id: int) -> lbsBlock.Block
Return shared memory block with given ID when it exists.
def get_shared_ids(self) -> set
Return IDs of shared blocks.
def get_shared_memory(*args, **kwargs)
def get_size(*args, **kwargs)
def is_migratable(self, o: lbsObject.Object) -> bool
Return whether given object is migratable.
def is_sentinel(self, o: lbsObject.Object) -> bool
Return whether given object is sentinel of rank.
def remove_migratable_object(self, o: lbsObject.Object)
Remove objects from migratable objects.
def set_metadata(self, metadata: dict)
Set rank's metadata.
def set_shared_blocks(self, blocks: set)
Set rank shared memory blocks.
def set_size(self, size)
Set rank working memory, called size.

Special methods

def __init__(self, logger: logging.Logger, r_id: int = -1, migratable_objects: set = None, sentinel_objects: set = None)
def __lt__(self, other)
def __repr__(self)