       public: pub
       graph: @graph.properties.id
 
+  renameInport: (oldPub, newPub) =>
+    @registerChange 'renameinport',
+      from: oldPub
+      to: newPub
+      graph: @graph.properties.id
+
   addOutport: (pub, priv) =>
     @registerChange 'addoutport',
       public: pub

    @graph.on 'removeInitial', @removeInitial
    @graph.on 'addInport', @addInport
    @graph.on 'removeInport', @removeInport
    @graph.on 'addOutport', @addOutport
    @graph.on 'removeOutport', @removeOutport
    @subscribed = true

  unsubscribe: ->

  removeOutport: (pub) =>
    @registerChange 'removeoutport',
      public: pub
      graph: @graph.properties.id

  renameOutport: (oldPub, newPub) =>
    @registerChange 'renameoutport',
      from: oldPub
      to: newPub
      graph: @graph.properties.id

  send: =>
