Skip to content

Instantly share code, notes, and snippets.

@wpf500
Created February 5, 2013 13:16
Show Gist options
  • Save wpf500/4714376 to your computer and use it in GitHub Desktop.
Save wpf500/4714376 to your computer and use it in GitHub Desktop.
common stuff
enum cargo type
BREAD
TVS
etc.
position
tuple<longitude,latitude>
class cargo
priority value : int (0 highest priority)
volume : float of m^3
type : list<cargo type>
class ship
id : int
cargodetails : list<cargo>
position : position
width : float
length : float
depth : float
class berth
// types of cargo berth accepts
type : list<enum cargo type>
// to evaluate if the ship can fit in the berth
width : float
length : float
depth : float
class route
points : list<position>
analysis -> planning
contingency time : mins/hour
// utilisation of each berth at hourly intervals
<starttime, berth, utilisation> : 0..1
// utilisation of each route at hourly intervals
<starttime, route, utilisation> : 0..1
execution -> planning
// how this looks depends on how plan structures look
alterations to plan
@LeoBakerHytch
Copy link

Might want to have standard container sizes as an option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment