Class FWSimComponentFactory

java.lang.Object
net.simplace.client.sim.graphpanel.factory.AbstractSimFactory
net.simplace.client.sim.graphpanel.factory.FWSimComponentFactory
All Implemented Interfaces:
org.apache.commons.collections15.Factory<net.simplace.sim.util.FWSimFieldContainer>

public class FWSimComponentFactory extends AbstractSimFactory
Creates SimComponents chosen by the user (from all SimComponent classes not yet in the solution) and SimComponent groups for the graph editor.
Author:
XPMUser
  • Field Details

    • iFindSimComponents

      protected static List<String> iFindSimComponents
      Cached class names of all SimComponents found in the classpath.
  • Constructor Details

    • FWSimComponentFactory

      public FWSimComponentFactory(SimEnvGraphPanel aSimEnvGraphPanel, int aFirstOrderNumber)
      Parameters:
      aSimEnvGraphPanel - the graph panel
      aFirstOrderNumber - order number of the first created SimComponent
  • Method Details

    • createFieldContainer

      protected net.simplace.sim.util.FWSimFieldContainer createFieldContainer()
      Specified by:
      createFieldContainer in class AbstractSimFactory
      Returns:
      a new FWSimFieldContainer, or null if cancelled
      See Also:
      • Factory.create()
    • createFieldContainerGroup

      public net.simplace.sim.util.FWSimFieldContainerGroup createFieldContainerGroup(List<net.simplace.sim.util.FWSimFieldContainer> aPickedSimComponents, Collection<net.simplace.sim.model.SimFieldLink> aCollection, String aGroupName, net.simplace.sim.util.FWSimVariable.CONTENT_TYPE aSim)
      Parameters:
      aPickedSimComponents - field containers combined in the group
      aCollection - edges of the graph
      aGroupName - name of the group
      aSim - content type of the group
      Returns:
      the new created FieldContainer