Skip to content

Commit

Permalink
Add docstring at the beginning of all .py files
Browse files Browse the repository at this point in the history
  • Loading branch information
uditarora committed Mar 13, 2018
1 parent 8f3d660 commit b063afb
Show file tree
Hide file tree
Showing 12 changed files with 54 additions and 0 deletions.
4 changes: 4 additions & 0 deletions algos/cpu_scheduling.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
'''
This file contains the implementation of CPU Scheduling algorithms
'''

from sys import maxsize
from operator import itemgetter
import Queue
Expand Down
4 changes: 4 additions & 0 deletions algos/deadlock.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
'''
This file contains the implementation of Deadlock Detection and Avoidance algorithms
'''

import copy

# Bad input case(s):
Expand Down
4 changes: 4 additions & 0 deletions algos/disk_scheduling.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
'''
This file contains the implementation of Disk Scheduling algorithms
'''

from sys import maxint
from random import choice

Expand Down
4 changes: 4 additions & 0 deletions algos/memory_allocation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
'''
This file contains the implementation of Memory Allocation strategies
'''

from operator import itemgetter
from copy import deepcopy

Expand Down
4 changes: 4 additions & 0 deletions algos/page_replacement.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
'''
This file contains the implementation of Page Replacement algorithms
'''

from copy import deepcopy
from sys import maxint
from random import randint
Expand Down
4 changes: 4 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
'''
This file defines the Kivy app and loads the screens and their layouts
'''

# Kivy libraries
from kivy.app import App
from kivy.lang import Builder
Expand Down
5 changes: 5 additions & 0 deletions screens/cpu_screens.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
'''
This file contains the classes, functions and globals used for visualizing
CPU Scheduling algorithms
'''

# Kivy libraries
from kivy.core.window import Window
from kivy.graphics import Color, Rectangle
Expand Down
5 changes: 5 additions & 0 deletions screens/deadlock_avoidance_screens.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
'''
This file contains the classes, functions and globals used for visualizing
Deadlock Avoidance algorithms
'''

# Kivy libraries
from kivy.properties import ObjectProperty
from kivy.uix.scrollview import ScrollView
Expand Down
5 changes: 5 additions & 0 deletions screens/deadlock_detection_screens.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
'''
This file contains the classes, functions and globals used for visualizing
Deadlock Detection algorithms
'''

# Kivy libraries
from kivy.properties import ObjectProperty
from kivy.uix.scrollview import ScrollView
Expand Down
5 changes: 5 additions & 0 deletions screens/disk_screens.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
'''
This file contains the classes, functions and globals used for visualizing
Disk Scheduling algorithms
'''

# Kivy libraries
from kivy.core.window import Window
from kivy.graphics import Color, Line
Expand Down
5 changes: 5 additions & 0 deletions screens/memory_screens.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
'''
This file contains the classes, functions and globals used for visualizing
Contiguous Memory Allocation Strategios
'''

# Kivy libraries
from kivy.core.window import Window
from kivy.graphics import Color, Rectangle
Expand Down
5 changes: 5 additions & 0 deletions screens/page_screens.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
'''
This file contains the classes, functions and globals used for visualizing
Page Replacement algorithms
'''

# Kivy libraries
from kivy.core.window import Window
from kivy.properties import ObjectProperty, NumericProperty
Expand Down

0 comments on commit b063afb

Please sign in to comment.