|
81 | 81 | fwa = cj.add_file_write_action("FileWriteAction1", file1, ss1) |
82 | 82 | print(f"Adding {fwa.get_name()} to {cj.get_name()}") |
83 | 83 |
|
84 | | - print(f"File Write Action get_file = {fwa.get_file()}") |
85 | | - print(f"File Write Action get_file_location = {fwa.get_file_location()}") |
86 | | - print(f"File Write Action uses_scratch = {fwa.uses_scratch}") |
87 | | - |
88 | 84 | # Add a file read action to compound job |
89 | 85 | fra = cj.add_file_read_action("FileReadAction1", file1, ss1) |
90 | 86 | print(f"Adding {fra.get_name()} to {cj.get_name()}") |
91 | 87 |
|
92 | | - print(f"File Read Action get_file = {fra.get_file()}") |
93 | | - print(f"File Read Action get_file_location = {fra.get_file_location()}") |
94 | | - print(f"File Read Action get_num_bytes_to_read = {fra.get_file_location()}") |
95 | | - print(f"File Read Action uses_scratch = {fra.uses_scratch}") |
96 | | - |
97 | 88 | # Add a file copy action to compound job |
98 | 89 | fca = cj.add_file_copy_action("FileCopyAction1", file1, ss1, ss2) |
99 | 90 | print(f"Adding {fca.get_name()} to {cj.get_name()}") |
100 | 91 |
|
101 | | - print(f"File Copy Action getFile = {fca.get_file()}") |
102 | | - print(f"File Copy Action getSourceFileLocation = {fca.get_source_file_location()}") |
103 | | - print(f"File Copy Action getDestinationFileLocation = {fca.get_destination_file_location()}") |
104 | | - print(f"File Copy Action usesScratch = {fca.uses_scratch}") |
105 | | - |
106 | 92 | # Add a file delete action to compound job |
107 | 93 | fda = cj.add_file_delete_action("FileDeleteAction1", file1, ss1) |
108 | 94 | print(f"Adding {fda.get_name()} to {cj.get_name()}") |
109 | 95 |
|
110 | | - print(f"File Delete Action getFile = {fda.get_file()}") |
111 | | - print(f"File Delete Action getFileLocation = {fda.get_file_location()}") |
112 | | - print(f"File Delete Action usesScratch = {fda.uses_scratch}") |
113 | | - |
114 | 96 | # Add a sleep action to compound job |
115 | 97 | sa = cj.add_sleep_action("SleepAction1", 5.0) |
116 | 98 | print(f"Adding {sa.get_name()} to {cj.get_name()}") |
117 | 99 |
|
118 | | - print(f"Sleep Action getSleepTime = {sa.get_sleep_time()}") |
| 100 | + # print(f"Sleep Action getSleepTime = {sa.get_sleep_time()}") |
119 | 101 |
|
120 | 102 | # # Add a parent compound job to another compound job |
121 | 103 | cj2_0 = simulation.create_compound_job("") |
|
152 | 134 | print(f"\t- Event: {event}") |
153 | 135 | print(f"Time is {simulation.get_simulated_time()}") |
154 | 136 |
|
155 | | - # print("Synchronously waiting for the next simulation event...") |
156 | | - # event = simulation.wait_for_next_event() |
157 | | - # print(f" - Event: {event}") |
158 | | - # print(f"Time is {simulation.get_simulated_time()}") |
159 | | - |
160 | 137 | print("Terminating simulation") |
161 | 138 | simulation.terminate() |
162 | 139 |
|
|
0 commit comments