diagram_definition(type = "stdp",
  hardy_version = 1.079,
  custom_menu_strings = []).

node_definition(type = "operation",
  image_type = "Rectangle",
  attribute_for_label = "label",
  format_string = "%1",
  abbreviation_format_string = "%1",
  colour = "WHITE",
  default_width = 100,
  default_height = 50,
  text_size = 10,
  can_resize = 1,
  use_attachments = 1,
  attributes = ["name", "time_limit"]).

node_definition(type = "control",
  image_type = "Circle",
  attribute_for_label = "label",
  format_string = "%1",
  abbreviation_format_string = "%1",
  colour = "WHITE",
  default_width = 50,
  default_height = 50,
  text_size = 10,
  can_resize = 1,
  use_attachments = 1,
  attributes = ["name"]).

node_definition(type = "resource",
  image_type = "Ellipse",
  attribute_for_label = "label",
  format_string = "%1",
  abbreviation_format_string = "%1",
  colour = "WHITE",
  default_width = 100,
  default_height = 50,
  text_size = 10,
  can_resize = 1,
  use_attachments = 1,
  attributes = ["name", "source"]).

node_definition(type = "stopper",
  image_type = "Circle",
  attribute_for_label = "label",
  format_string = "%1",
  abbreviation_format_string = "%1",
  colour = "BLACK",
  default_width = 10,
  default_height = 10,
  text_size = 10,
  can_resize = 1,
  use_attachments = 1,
  attributes = ["name"]).

arc_definition(type = "input",
  format_string = "%1",
  abbreviation_format_string = "%1",
  image_type = "Line",
  arrow_type = "End",
  line_style = "Solid",
  width = 1,
  segmentable = 1,
  attribute_for_label = "label",
  colour = "BLACK",
  text_size = 10,
  can_connect_to = ["operation", "operation", "operation", "operation"],
  can_connect_from = ["operation", "control", "resource", "stopper"],
  attributes = ["name"]).

arc_definition(type = "output",
  format_string = "%1",
  abbreviation_format_string = "%1",
  image_type = "Line",
  arrow_type = "End",
  line_style = "Solid",
  width = 1,
  segmentable = 1,
  attribute_for_label = "label",
  colour = "BLACK",
  text_size = 10,
  can_connect_to = ["stopper"],
  can_connect_from = ["operation"],
  attributes = ["name"]).
