Пример #1
0
def page_file_allocation():
	inp = request.args['input']
	if inp == 'contigous':
		inp = 1
	else:
		inp = 0
	file_allocator.init(inp)
	return app.send_static_file('file_allocation.html')
Пример #2
0
def mvt_change_fit():
	fit = request.args['fit']
	print fit
	if file_allocator.mvt is not None:
		file_allocator.execute(4, '0')
	file_allocator.init(4)
	print file_allocator.execute(4, '0 100 ' + fit)
	return "Success"
Пример #3
0
def mft_init():
    inp = request.args['input']
    if file_allocator.mft is not None:
        file_allocator.execute(5, '0')
    file_allocator.init(5)
    out = file_allocator.execute(5, inp)
    print out
    return out
Пример #4
0
def page_indexed_file_allocation():
	file_allocator.init(3)
	return app.send_static_file('indexed_file_allocation.html')
Пример #5
0
def page_linked_file_allocation():
	file_allocator.init(2)
	return app.send_static_file('linked_file_allocation.html')
Пример #6
0
def page_contigous_file_allocation():
	file_allocator.init(1)
	return app.send_static_file('contigous_file_allocation.html')