Class SlaveInformation

java.lang.Object
zleurtor.scanmanager.view.SlaveInformation
All Implemented Interfaces:
Comparable<SlaveInformation>

public class SlaveInformation extends Object implements Comparable<SlaveInformation>
The model object containing the slave information.
Author:
Zleurtor
  • Field Details

    • DEFAULT_COLOR_BALANCE

      public static final int DEFAULT_COLOR_BALANCE
      The default color balance (100%).
      See Also:
  • Constructor Details

    • SlaveInformation

      public SlaveInformation(String theName, String theIp, Image theThumbnail)
      Constructs a new slave information with specified information.
      Parameters:
      theName - The slave name.
      theIp - The slave IP.
      theThumbnail - The slave thumbnail image.
  • Method Details

    • getName

      public final String getName()
      Returns the slave name(usually mac address).
      Returns:
      The slave name.
    • getVersion

      public final String getVersion()
      Returns the slave version.
      Returns:
      The slave version.
    • setVersion

      public final void setVersion(String newVersion)
      Sets new slave version.
      Parameters:
      newVersion - The new slave version.
    • getIp

      public final String getIp()
      Returns the slave IP.
      Returns:
      The slave IP.
    • getOptions

      public final String getOptions()
      Returns the slave options.
      Returns:
      The slave options.
    • setOptions

      public final void setOptions(String newOptions)
      Sets new slave options.
      Parameters:
      newOptions - The new slave options.
    • getSnapshotFilename

      public final String getSnapshotFilename()
      Returns the slave snapshot file name.
      Returns:
      The slave snapshot file name.
    • setSnapshotFilename

      public final void setSnapshotFilename(String newSnapshotFilename)
      Sets a new slave snapshot file name.
      Parameters:
      newSnapshotFilename - The new slave snapshot file name.
    • getThumbnail

      public final Image getThumbnail()
      Returns the slave thumbnail image.
      Returns:
      The slave thumbnail image.
    • setThumbnail

      public final void setThumbnail(Image theThumbnail)
      Sets a new slave thumbnail image.
      Parameters:
      theThumbnail - The new slave thumbnail image.
    • getColorBalance

      public final int[] getColorBalance()
      Returns the slave color balance.
      Returns:
      The slave color balance.
    • setColorBalance

      public final void setColorBalance(int[] newColorBalance)
      Sets a new slave color balance.
      Parameters:
      newColorBalance - The new slave color balance.
    • compareTo

      public final int compareTo(SlaveInformation other) throws ClassCastException
      Specified by:
      compareTo in interface Comparable<SlaveInformation>
      Throws:
      ClassCastException