public class ProductVersionNode
extends java.lang.Object
Constructor and Description |
---|
ProductVersionNode(java.util.Set<HiProduct> expected)
Create the node.
|
Modifier and Type | Method and Description |
---|---|
ProductNode |
addExpectedProduct(HiProduct product)
Add a product to the expected set.
|
ProductNode |
addProduct(HiProduct product,
ProductFile file)
Add a product, creating a new child node for it
|
int |
getAvailableCount()
Get the count of available products
|
java.util.Map<java.lang.String,ProductNode> |
getExpected()
Get the collection: a map from keys to leaf node values.
|
int |
getExpectedCount()
Get the count of expected products
|
int |
getIgnorableCount()
Get the count of ignorable products
|
java.util.Map<java.lang.String,ProductNode> |
getProducts()
Get the collection: a map from keys to leaf node values.
|
int |
getUnfinishedCount()
Get the count of unfinished products
|
void |
setIgnorable(HiProduct... ignorable)
Set the ignorable status for one or more products.
|
void |
setStatus(HiProduct product,
java.lang.String status)
Set the state to unfinished and the corresponding status message for
a particular version
|
protected void |
updateExpectation(HiProduct product,
ProductState state)
Set the state for a product
|
public ProductVersionNode(java.util.Set<HiProduct> expected)
expected
- products that are to be expectedpublic ProductNode addProduct(HiProduct product, ProductFile file)
product
- the unique product typefile
- a file reference for the productprotected void updateExpectation(HiProduct product, ProductState state)
product
- the productstate
- state valuepublic ProductNode addExpectedProduct(HiProduct product)
product
- the productpublic void setIgnorable(HiProduct... ignorable)
ignorable
- productspublic void setStatus(HiProduct product, java.lang.String status)
product
- the product instancestatus
- message, e.g. pipeline namepublic java.util.Map<java.lang.String,ProductNode> getProducts()
public java.util.Map<java.lang.String,ProductNode> getExpected()
public int getExpectedCount()
public int getAvailableCount()
public int getIgnorableCount()
public int getUnfinishedCount()
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona