Class SwitchEntity

  • All Implemented Interfaces:
    com._1c.g5.v8.dt.diagram.framework.IEntity, com._1c.g5.v8.dt.diagram.framework.IPosition

    public class SwitchEntity
    extends BpEntity
    Switch entity. Contains cases.
    • Constructor Detail

      • SwitchEntity

        public SwitchEntity​(String name,
                            int priority,
                            int x,
                            int y,
                            int width,
                            int height)
        Constructor.
        Parameters:
        name - - entity name. Can't be null.
        priority - - entity priority.
        x - - x coordinate of entity.
        y - - y coordinate of entity.
        width - - width of entity.
        height - - height of entity.
      • SwitchEntity

        public SwitchEntity​(String name,
                            int priority,
                            int x,
                            int y,
                            int width,
                            int height,
                            List<SwitchCase> cases)
        Constructor.
        Parameters:
        name - - entity name. Can't be null.
        priority - - entity priority.
        x - - x coordinate of entity.
        y - - y coordinate of entity.
        width - - width of entity.
        height - - height of entity.
        cases - - cases. Can't be null.
      • SwitchEntity

        public SwitchEntity​(int priority,
                            GraphicalSchemeFigure modelObject)
        Constructor.
        Parameters:
        priority - - entity priority.
        modelObject - - associated with this entity model object. Can't be null.
    • Method Detail

      • addCase

        public void addCase​(SwitchCase caze)
        Adds case to cases.
        Parameters:
        caze - - case to add. Can't be null.
      • removeCase

        public void removeCase​(SwitchCase caze)
        Removes case from cases.
        Parameters:
        caze - - case to remove. Can't be null.
      • getCases

        public List<SwitchCase> getCases()
        Returns switch cases.
        Returns:
        switch cases. Can't return null.