Class AMCInstalledComponent


  • public class AMCInstalledComponent
    extends InstalledComponent
    Represents an AMC component. Different from a regular InstalledComponent in that it also must remember whether or not AMC was deployed during the initial installation of the component.
    • Constructor Summary

      Constructors 
      Constructor Description
      AMCInstalledComponent​(java.lang.String name)
      Class constructor specifying the name of this component.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addFix​(int pos, java.lang.String fixName)
      Adds the name of a fix to the specified position in the list of fixes that have been applied to this component.
      void addFix​(java.lang.String fixName)
      Adds the name of a fix to the end of the list of fixes that have been applied to this component.
      boolean equals​(java.lang.Object obj)
      Tells if two AMCInstalledComponents are equal by comparing their names.
      boolean equals​(java.lang.String name)
      Tells if two InstalledComponents are equal by comparing their names.
      boolean getDeferredDeployment()
      Gets a value indicating whether or not AMC deployment was deferred during the initial TDI installation.
      int hashCode()
      Computes this InstalledComponent's hash code.
      void setDeferredDeployment​(boolean deferred)
      Sets whether or not AMC deployment occurred during the initial installation of TDI.
      void setDeferredDeployment​(java.lang.String deferred)
      Sets whether or not AMC deployment occurred during the initial installation of TDI.
      java.lang.String toString()
      Converts the current object to a String for printing.
      void writeFixes​(java.io.PrintWriter outfile)
      Write this component's information in the appropriate format to specified open file.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AMCInstalledComponent

        public AMCInstalledComponent​(java.lang.String name)
        Class constructor specifying the name of this component.
        Parameters:
        name - Component name
    • Method Detail

      • setDeferredDeployment

        public void setDeferredDeployment​(boolean deferred)
        Sets whether or not AMC deployment occurred during the initial installation of TDI.
        Parameters:
        deferred - true or false
      • setDeferredDeployment

        public void setDeferredDeployment​(java.lang.String deferred)
        Sets whether or not AMC deployment occurred during the initial installation of TDI.
        Parameters:
        deferred - "true" or "false"
      • getDeferredDeployment

        public boolean getDeferredDeployment()
        Gets a value indicating whether or not AMC deployment was deferred during the initial TDI installation.
        Returns:
        true or false
      • addFix

        public void addFix​(int pos,
                           java.lang.String fixName)
        Adds the name of a fix to the specified position in the list of fixes that have been applied to this component.
        Overrides:
        addFix in class InstalledComponent
        Parameters:
        pos - Position to add this fix in the list
        fixName - Name of the fix
      • addFix

        public void addFix​(java.lang.String fixName)
        Adds the name of a fix to the end of the list of fixes that have been applied to this component.
        Overrides:
        addFix in class InstalledComponent
        Parameters:
        fixName - Name of the fix
      • writeFixes

        public void writeFixes​(java.io.PrintWriter outfile)
        Write this component's information in the appropriate format to specified open file.
        Overrides:
        writeFixes in class InstalledComponent
        Parameters:
        outfile - The file that is being created
      • equals

        public boolean equals​(java.lang.Object obj)
        Tells if two AMCInstalledComponents are equal by comparing their names.
        Overrides:
        equals in class InstalledComponent
        Parameters:
        obj - An InstalledComponent to compare
        Returns:
        true if the objects have the same name, false otherwise
      • equals

        public boolean equals​(java.lang.String name)
        Tells if two InstalledComponents are equal by comparing their names.
        Overrides:
        equals in class InstalledComponent
        Parameters:
        name - A String with the name of the component to compare
        Returns:
        true if the names are equal, false otherwise
      • hashCode

        public int hashCode()
        Computes this InstalledComponent's hash code.
        Overrides:
        hashCode in class InstalledComponent
        Returns:
        the hashcode of the component's name
      • toString

        public java.lang.String toString()
        Converts the current object to a String for printing.
        Overrides:
        toString in class InstalledComponent
        Returns:
        A string representation of this object