uk.co.petertribble.pkgview
Class PackageCluster

java.lang.Object
  extended by uk.co.petertribble.pkgview.PackageCluster

public class PackageCluster
extends java.lang.Object

Describes a Solaris install cluster


Field Summary
static int FULLY_INSTALLED
           
static int NOT_INSTALLED
           
static int PARTIALLY_INSTALLED
           
 
Constructor Summary
PackageCluster(java.lang.String cname)
           
 
Method Summary
 void addPackage(SolarisPackage p)
           
 boolean containsPackage(SolarisPackage p)
           
 boolean containsPackage(java.lang.String pname)
           
 java.util.Map<java.lang.String,java.lang.String> dependMap()
          Accumulate the dependencies for this cluster
 void forceSelected()
          Sets whether this package cluster must be selected.
 java.lang.String getClusterName()
           
 java.util.Set<SolarisPackage> getDependantSet()
          Return the Set of packages that are dependant on this cluster.
 java.util.Set<java.lang.String> getDependencySet()
          Return the Set of package names that his cluster declares itself dependent on.
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 java.util.List<SolarisPackage> getPackages()
           
 boolean getSelected()
          Gets whether this package cluster is selected.
 java.util.Set<SolarisPackage> getSelectedDependantSet()
          Return the Set of packages that are dependant on this cluster and are selected.
 int installedStatus()
          Shows whether this cluster is fully installed, partially installed, or not installed.
 java.lang.String installedStatusText()
          Shows whether this cluster is fully installed, partially installed, or not installed.
 boolean mustBePartiallySelected()
          Gets whether this package cluster contains one or more, but not all, packages that must be selected.
 boolean mustBeSelected()
          Gets whether this package cluster must be selected.
 int selectedStatus()
          Shows whether this cluster is fully selected, partially selected, or not selected, based on whether its constituent packages are selected.
 void setDescription(java.lang.String description)
           
 void setName(java.lang.String name)
           
 void setSelected(boolean selected)
          Sets whether this package cluster is selected.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FULLY_INSTALLED

public static final int FULLY_INSTALLED
See Also:
Constant Field Values

PARTIALLY_INSTALLED

public static final int PARTIALLY_INSTALLED
See Also:
Constant Field Values

NOT_INSTALLED

public static final int NOT_INSTALLED
See Also:
Constant Field Values
Constructor Detail

PackageCluster

public PackageCluster(java.lang.String cname)
Method Detail

setName

public void setName(java.lang.String name)

setDescription

public void setDescription(java.lang.String description)

getName

public java.lang.String getName()

getDescription

public java.lang.String getDescription()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getClusterName

public java.lang.String getClusterName()

addPackage

public void addPackage(SolarisPackage p)

getPackages

public java.util.List<SolarisPackage> getPackages()

containsPackage

public boolean containsPackage(SolarisPackage p)

containsPackage

public boolean containsPackage(java.lang.String pname)

dependMap

public java.util.Map<java.lang.String,java.lang.String> dependMap()
Accumulate the dependencies for this cluster


getDependencySet

public java.util.Set<java.lang.String> getDependencySet()
Return the Set of package names that his cluster declares itself dependent on.


getDependantSet

public java.util.Set<SolarisPackage> getDependantSet()
Return the Set of packages that are dependant on this cluster.


getSelectedDependantSet

public java.util.Set<SolarisPackage> getSelectedDependantSet()
Return the Set of packages that are dependant on this cluster and are selected.


installedStatus

public int installedStatus()
Shows whether this cluster is fully installed, partially installed, or not installed.


installedStatusText

public java.lang.String installedStatusText()
Shows whether this cluster is fully installed, partially installed, or not installed.


selectedStatus

public int selectedStatus()
Shows whether this cluster is fully selected, partially selected, or not selected, based on whether its constituent packages are selected.


setSelected

public void setSelected(boolean selected)
Sets whether this package cluster is selected. Propagates that selection to packages contained in this cluster.


getSelected

public boolean getSelected()
Gets whether this package cluster is selected.


forceSelected

public void forceSelected()
Sets whether this package cluster must be selected. Propagates that selection to packages contained in this cluster.


mustBeSelected

public boolean mustBeSelected()
Gets whether this package cluster must be selected. Packages and clusters in the SUNWCmreq metacluster must be selected.


mustBePartiallySelected

public boolean mustBePartiallySelected()
Gets whether this package cluster contains one or more, but not all, packages that must be selected. Packages and clusters in the SUNWCmreq metacluster must be selected.