This repository has been archived by the owner on May 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from codesidian/object-and-flow-change
improvement: Apply new object and flow changes
- Loading branch information
Showing
7 changed files
with
286 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"python.formatting.provider": "black" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class Despatch: | ||
#ID - Mission ID (String) | ||
#vehicles - List of vehicle ID's sent to mission | ||
#remSec - Remaining time in seconds | ||
def __init__(self, ID,vehicles, remSec): | ||
self.ID = ID | ||
self.vehicles = vehicles | ||
self.remSec = remSec | ||
|
||
def getID(self): | ||
return self.ID | ||
def getVehicles(self): | ||
return self.vehicles | ||
def __eq__(self, other): | ||
return self.ID == other.ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
class Mission: | ||
#ID - Mission ID (String) | ||
#name - Mission Name (String) | ||
#requirements - Mission Requirements (list) | ||
#status - Mission Status (int) | ||
def __init__(self, ID,name,requirements,status=0): | ||
self.name = name | ||
self.ID = ID | ||
self.requirements = requirements | ||
self.status=status | ||
|
||
|
||
def getName(self): | ||
return self.name | ||
def getID(self): | ||
return self.ID | ||
def getStatus(self): | ||
return self.status | ||
def setStatus(self, status): | ||
self.status = status | ||
def getRequirements(self): | ||
return self.requirements | ||
def __eq__(self, other): | ||
return self.ID == other.ID |
Oops, something went wrong.