<commit_before>/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.openmole.ide.core.model.workflow

import org.netbeans.api.visual.widget.Widget
import org.openmole.ide.core.model.commons.CapsuleType
import org.openmole.ide.core.model.dataproxy._
import scala.collection.mutable.HashMap

trait ICapsuleUI {
  def capsuleType: CapsuleType.Value
  
  def dataProxy: Option[ITaskDataProxyUI]
  
  def startingCapsule: Boolean
  
  def defineAsStartingCapsule(b: Boolean): Unit
  
  def scene: IMoleScene
  
  def connectableWidget: IConnectableWidget
  
  def encapsule(dpu: ITaskDataProxyUI)
  
  def addInputSlot(startingCapsule: Boolean): IInputSlotWidget
  
  def removeInputSlot: Unit
  
  def nbInputSlots: Int
  
  def setDataProxy(dpu: ITaskDataProxyUI)
  
  def widget: Widget
  
  def copy(sc: IMoleScene): (ICapsuleUI,HashMap[IInputSlotWidget,IInputSlotWidget])
}<commit_msg>add environment to ICapsuleUI structure<commit_after>/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.openmole.ide.core.model.workflow

import org.netbeans.api.visual.widget.Widget
import org.openmole.ide.core.model.commons.CapsuleType
import org.openmole.ide.core.model.dataproxy._
import scala.collection.mutable.HashMap

trait ICapsuleUI {
  def capsuleType: CapsuleType.Value
  
  def dataProxy: Option[ITaskDataProxyUI]
  
  def startingCapsule: Boolean
  
  def defineAsStartingCapsule(b: Boolean): Unit
  
  def scene: IMoleScene
  
  def connectableWidget: IConnectableWidget
  
  def encapsule(dpu: ITaskDataProxyUI)
  
  def addInputSlot(startingCapsule: Boolean): IInputSlotWidget
  
  def removeInputSlot: Unit
  
  def nbInputSlots: Int
  
  def setDataProxy(dpu: ITaskDataProxyUI)
  
  def widget: Widget
  
  def copy(sc: IMoleScene): (ICapsuleUI,HashMap[IInputSlotWidget,IInputSlotWidget])
  
  def environment: Option[IEnvironmentDataProxyUI]
  
  def environment_=(s: Option[IEnvironmentDataProxyUI])
}
{'fraction_non_alphanumeric': 0.07737801872843765, 'fraction_numerical': 0.0, 'mean_word_length': 4.59228650137741, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1925094', 'n_tokens_mistral': 689, 'n_tokens_neox': 687, 'n_words': 148}