Class Platform


  • public class Platform
    extends Object
    • Constructor Detail

      • Platform

        public Platform()
        Default Constructor sets the properties to nulls
      • Platform

        public Platform​(String platformName,
                        String platformDescription)
        Constructor
        Parameters:
        platformName - platform name
        platformDescription - platform description
    • Method Detail

      • getPlatformName

        public String getPlatformName()
        Get the platform name
        Returns:
        platform name
      • setPlatformName

        public void setPlatformName​(String platformName)
        Set a meaningful name for the platform
        Parameters:
        platformName - set platform name
      • getPlatformDescription

        public String getPlatformDescription()
        Get the platform description
        Returns:
        platform description
      • setPlatformDescription

        public void setPlatformDescription​(String platformDescription)
        Set the description for the platform
        Parameters:
        platformDescription - set platform description
      • getStoredServers

        public Set<StoredServer> getStoredServers()
        Set the stored servers on this platform
        Returns:
        the stored servers on this platform
      • setStoredServers

        public void setStoredServers​(Set<StoredServer> storedServers)
        Get the stored servers on this platform
        Parameters:
        storedServers - servers
      • addStoredServer

        public void addStoredServer​(StoredServer storedServer)
        Add a stored server to the platform
        Parameters:
        storedServer - stored server to add
      • getPlatformStatus

        public PlatformStatus getPlatformStatus()
        return the status of the platform
        Returns:
        the returned platform status
      • setPlatformStatus

        public void setPlatformStatus​(PlatformStatus platformStatus)
        Set the platform status
        Parameters:
        platformStatus - platform status to set
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object