public class Pack extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
BLACK
black colour
|
int |
color
The color of the node.
|
List |
dependencies
The list of packs this pack depends on
|
String |
description
The pack description.
|
private static DecimalFormat |
formatter
Used of conversions.
|
private static double |
GIGABYTES
Used of conversions.
|
static int |
GREY
grey colour
|
String |
group
The group the pack is associated with.
|
String |
id
The langpack id
|
Set |
installGroups
An association of this pack to zero or more installation groups.
|
private static double |
KILOBYTES
Used of conversions.
|
boolean |
loose |
private static double |
MEGABYTES
Used of conversions.
|
String |
name
The pack name.
|
long |
nbytes
The bumber of bytes contained in the pack.
|
List |
osConstraints
The target operation system of this pack
|
boolean |
preselected
Whether this pack is suggested (preselected for installation).
|
boolean |
required
True if the pack is required.
|
List |
revDependencies
Reverse dependencies(childs)
|
(package private) static long |
serialVersionUID |
static int |
WHITE
white colour
|
Constructor and Description |
---|
Pack(String name,
String id,
String description,
List osConstraints,
List dependencies,
boolean required,
boolean preselected,
boolean loose)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addRevDep(String name)
This adds a reverse dependency.
|
String |
depString()
Creates a text list of all the packs it depend on
|
List |
getDependencies()
getter method
|
static String |
toByteUnitsString(int bytes)
Convert bytes into appropiate mesaurements.
|
String |
toString()
To a String (usefull for JLists).
|
static final long serialVersionUID
public boolean loose
public Set installGroups
public String group
public String description
public List osConstraints
public List dependencies
public List revDependencies
public boolean required
public long nbytes
public boolean preselected
public int color
public static final int WHITE
public static final int GREY
public static final int BLACK
private static final double KILOBYTES
private static final double MEGABYTES
private static final double GIGABYTES
private static final DecimalFormat formatter
public Pack(String name, String id, String description, List osConstraints, List dependencies, boolean required, boolean preselected, boolean loose)
name
- The pack name.description
- The pack description.osConstraints
- the OS constraint (or null for any OS)required
- Indicates wether the pack is required or not.preselected
- This pack will be selected automatically.public List getDependencies()
public void addRevDep(String name)
name
- The name of the pack that depents to this packpublic String depString()
public static String toByteUnitsString(int bytes)
bytes
- A number of bytes to convert to a String.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses