Class ChannelAttributes

java.lang.Object
com.elpical.jclaro.admin.ws.server.ChannelAttributes

public class ChannelAttributes extends Object
This class holds some general Channel Attributes available to all types of Channels
  • Constructor Details

    • ChannelAttributes

      public ChannelAttributes()
      Empty constructor, no values are automatically filled
    • ChannelAttributes

      public ChannelAttributes(int channelType)
      Constructor which sets the correct channel type
      Parameters:
      channelType - The type of Channel ChannelType_NotDefined = 0 ChannelType_ImageProcessing = 1 ChannelType_RoutingChannel = 2 ChannelType_DeviceLink = 3 ChannelType_Purging = 4 ChannelType_Cropping = 5
    • ChannelAttributes

      public ChannelAttributes(com.elpical.jclaro.database.entities.ClaroChannel aChannel, HashMap<String,​String> theClaroChannelPreferences)
  • Method Details

    • getName

      public String getName()
      The name of the Channel
      Returns:
      The name of the Channel
    • setName

      public void setName(String name)
      Sets the name of the Channel
      Parameters:
      name - The name of the Channel
    • getPriority

      public int getPriority()
      Returns the priority of the Channel. Number from 0 - 100. The higher the value, the higher the priority
      Returns:
      The priority of the Channel. Number from 0 - 100. The higher the value, the higher the priority
    • setPriority

      public void setPriority(int priority)
      Sets the priority of the Channel. Number from 0 - 100. The higher the value, the higher the priority
      Parameters:
      priority - The priority of the Channel. Number from 0 - 100. The higher the value, the higher the priority
    • isQualityOptimised

      public boolean isQualityOptimised()
      Determines the sharpness from the high resolution image instead of using a lower resolution image
      Returns:
      Whether to use the high resolution image instead of using a lower resolution image for sharpness detection
    • setQualityOptimised

      public void setQualityOptimised(boolean qualityOptimised)
      Sets whether to use the high resolution image instead of using a lower resolution image for sharpness detection
      Parameters:
      qualityOptimised - Whether to use the high resolution image instead of using a lower resolution image for sharpness detection
    • isTestAutoCrop

      public boolean isTestAutoCrop()
    • setTestAutoCrop

      public void setTestAutoCrop(boolean testAutoCrop)
    • isTestBetaFeatures

      public boolean isTestBetaFeatures()
    • setTestBetaFeatures

      public void setTestBetaFeatures(boolean testBetaFeatures)
    • getType

      public int getType()
      The type of the Channel: ChannelType_NotDefined = 0 ChannelType_ImageProcessing = 1 ChannelType_RoutingChannel = 2 ChannelType_DeviceLink = 3 ChannelType_Purging = 4 ChannelType_Cropping = 5
      Returns:
      The type of the Channel
    • setType

      public void setType(int type)
      Sets the type of the Channel
      Parameters:
      type - The type of the Channel ChannelType_NotDefined = 0 ChannelType_ImageProcessing = 1 ChannelType_RoutingChannel = 2 ChannelType_DeviceLink = 3 ChannelType_Purging = 4 ChannelType_Cropping = 5
    • getGroup

      public Group getGroup()
      Returns the Group the Channel belongs to or null if it's not part of a Group
      Returns:
      The Group the Channel belongs to or null if it's not part of a Group
    • setGroup

      public void setGroup(Group group)
      Sets the Group the Channel belongs to
      Parameters:
      group - The Group the Channel belongs to
    • isCreateTestGreenMask

      public boolean isCreateTestGreenMask()
    • setCreateTestGreenMask

      public void setCreateTestGreenMask(boolean set)
    • isCreateTestBlueMask

      public boolean isCreateTestBlueMask()
    • setCreateTestBlueMask

      public void setCreateTestBlueMask(boolean set)
    • isCreateTestSkinMask

      public boolean isCreateTestSkinMask()
    • setCreateTestSkinMask

      public void setCreateTestSkinMask(boolean set)
    • save

      public void save(com.elpical.jclaro.database.entities.ClaroChannel aClaroChannel, boolean isNewChannel)