Sparse Virtual File System  0.4.0
A Sparse Virtual File System.
Classes | Functions | Variables
src.cpy.simulator Namespace Reference

Classes

class  Communications
 
class  Server
 
class  RunResult
 
class  Client
 

Functions

RunResult run (typing.Tuple[typing.Tuple[int, int],...] events, int greedy_length, float latency_s, float bandwidth_bit_ps, float seek_rate_byte_per_s, float read_rate_byte_per_s, bool realtime)
 
def main ()
 

Variables

 logger = logging.getLogger(__file__)
 
tuple LOG_FORMAT_VERBOSE
 
tuple LOG_FORMAT_NO_THREAD
 
tuple LOG_FORMAT_NO_PROCESS
 

Detailed Description

MIT License

Copyright (c) 2020-2024 Paul Ross

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Function Documentation

◆ main()

def src.cpy.simulator.main ( )

Definition at line 216 of file simulator.py.

◆ run()

RunResult src.cpy.simulator.run ( typing.Tuple[typing.Tuple[int, int], ...]  events,
int  greedy_length,
float  latency_s,
float  bandwidth_bit_ps,
float  seek_rate_byte_per_s,
float  read_rate_byte_per_s,
bool   realtime 
)

Definition at line 204 of file simulator.py.

Variable Documentation

◆ LOG_FORMAT_NO_PROCESS

tuple src.cpy.simulator.LOG_FORMAT_NO_PROCESS
Initial value:
1 = (
2  '%(asctime)s - %(filename)12s#%(lineno)-4d - %(levelname)-8s - %(message)s'
3 )

Definition at line 46 of file simulator.py.

◆ LOG_FORMAT_NO_THREAD

tuple src.cpy.simulator.LOG_FORMAT_NO_THREAD
Initial value:
1 = (
2  '%(asctime)s - %(filename)24s#%(lineno)-4d - %(process)5d - %(levelname)-8s - %(message)s'
3 )

Definition at line 42 of file simulator.py.

◆ LOG_FORMAT_VERBOSE

tuple src.cpy.simulator.LOG_FORMAT_VERBOSE
Initial value:
1 = (
2  '%(asctime)s - %(filename)24s#%(lineno)-4d - %(process)5d - (%(threadName)-10s) - %(levelname)-8s - %(message)s'
3 )

Definition at line 38 of file simulator.py.

◆ logger

src.cpy.simulator.logger = logging.getLogger(__file__)

Definition at line 36 of file simulator.py.