       'M'
       'P:' + @precedence
       @direction.inspect()
-      @getSourceNode()?.inspect() ? ''
+      @getSourceNodes().map((n) -> n.inspect()).join(' ')
       @wasDelivered and 'D' or ''
       @payload.inspect()
     ].filter( (s) -> s.length).join(' ')

'use strict'


assert = require 'assert'
MergedPayload = require '../payloads/merged'
directions = require '../directions'





  getSourceNodes: ->
    if @sourceMessages.length
      sourceNodes = []
      for message in @sourceMessages
        sourceNodes.push @sourceMessages.getSourceNodes()...
      sourceNodes
    else
      [@node]


  markSourceMessageAsDelivered: ->
    if @sourceMessages.length
      for message in @sourceMessages
        message.markSourceMessageAsDelivered()
    else
      @wasDelivered = yes
    return this
