Skip to content

Commit 710822b

Browse files
committed
Documentation fixes
1 parent bf1e475 commit 710822b

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

wrench/compute_service.py

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class ComputeService(SimulationItem):
1919
def __init__(self, simulation, name: str) -> None:
2020
"""
2121
Constructor
22+
2223
:param simulation: simulation object
2324
:type simulation
2425
:param name: Compute service name
@@ -28,28 +29,35 @@ def __init__(self, simulation, name: str) -> None:
2829

2930
def supports_compound_jobs(self) -> bool:
3031
"""
31-
Returns true if the service supports compound jobs.
32-
:return:
32+
Determines whether the compute service supports compound jobs.
33+
34+
:return: True if compound jobs are supported, false otherwise
35+
:rtype: bool
3336
"""
3437
return self.simulation._supports_compound_jobs(self.name)
3538

3639
def supports_pilot_jobs(self) -> bool:
3740
"""
38-
Returns true if the service supports pilot jobs.
39-
:return:
41+
Determines whether the compute service supports pilot jobs.
42+
43+
:return: True if pilot jobs are supported, false otherwise
44+
:rtype: bool
4045
"""
4146
return self.simulation._supports_pilot_jobs(self.name)
4247

4348
def supports_standard_jobs(self) -> bool:
4449
"""
45-
Returns true if the service supports pilot jobs.
46-
:return:
50+
Determines whether the compute service supports standard jobs.
51+
52+
:return: True if standard jobs are supported, false otherwise
53+
:rtype: bool
4754
"""
4855
return self.simulation._supports_standard_jobs(self.name)
4956

5057
def __str__(self) -> str:
5158
"""
5259
:return: String representation of a compute service
60+
5361
:rtype: str
5462
"""
5563
s = f"Compute Service {self.name}"

wrench/virtual_machine.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,27 @@ def shutdown(self) -> None:
5858
def is_running(self) -> bool:
5959
"""
6060
Determines whether a virtual machine is running.
61+
62+
:return: True if the virtual machine is running, false otherwise
63+
:rtype: bool
6164
"""
6265
return self.simulation._is_vm_running(self.cloud_compute_service_name, self.name)
6366

6467
def is_suspended(self) -> bool:
6568
"""
6669
Determines whether a virtual machine is suspended.
70+
71+
:return: True if the virtual machine is suspended, false otherwise
72+
:rtype: bool
6773
"""
6874
return self.simulation._is_vm_suspended(self.cloud_compute_service_name, self.name)
6975

7076
def is_down(self) -> bool:
7177
"""
7278
Determines whether a virtual machine is down.
79+
80+
:return: True if the virtual machine is down, false otherwise
81+
:rtype: bool
7382
"""
7483
return self.simulation._is_vm_down(self.cloud_compute_service_name, self.name)
7584

0 commit comments

Comments
 (0)