com.rapidtransform.part.model
Class SelectedInstance

java.lang.Object
  extended by com.rapidtransform.core.model.AbstractBaseModel
      extended by com.rapidtransform.core.model.VersionControlled
          extended by com.rapidtransform.part.model.ItemInstance
              extended by com.rapidtransform.part.model.SelectedInstance
All Implemented Interfaces:
Classified, Model, Versioned, Approvable, OrganizationalData, OrganizationElement, ItemInformation, ProductConstituent, Effective, java.io.Serializable

public class SelectedInstance
extends ItemInstance

The SelectedInstance is an item on a product structure whose quantity depends on the selection control constraints (@see SelectionControl). A SelectedInstance can either be an ItemView or a Product.

Author:
S. Werner
See Also:
Serialized Form

Constructor Summary
SelectedInstance()
          default constructor
SelectedInstance(ItemView forView)
          Creates an instance of the specified version.
 
Method Summary
 Quantity getQuantity()
           
 java.lang.String getSelectionControl()
           
 void setQuantity(Quantity quantity)
           
 void setSelectionControl(java.lang.String selectionControl)
           
 
Methods inherited from class com.rapidtransform.part.model.ItemInstance
getAliases, getConfigs, getDescription, getDocuments, getItemView, getManufacturingConfigs, getRelations, setAliases, setConfigs, setDescription, setDocuments, setItemView, setManufacturingConfig, setManufacturingConfigs, setRelations
 
Methods inherited from class com.rapidtransform.core.model.VersionControlled
getCreatedBy, getCreatedDate, getIteration, getModifiedBy, getModifiedDate, setCreatedBy, setCreatedDate, setIteration, setModifiedBy, setModifiedDate
 
Methods inherited from class com.rapidtransform.core.model.AbstractBaseModel
equals, generateUuid, getId, getMetaTypeName, getPropertyHolder, getUuid, hashCode, setId, setMetaTypeName, setPropertyHolder, setUuid
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectedInstance

public SelectedInstance()
default constructor


SelectedInstance

public SelectedInstance(ItemView forView)
Creates an instance of the specified version.

Parameters:
forView - The parent ItemView of this instance
Method Detail

getQuantity

public Quantity getQuantity()
Returns:
Returns the quantity.

setQuantity

public void setQuantity(Quantity quantity)
Parameters:
quantity - The quantity to set.

getSelectionControl

public java.lang.String getSelectionControl()
Returns:
Returns the selectionControl.

setSelectionControl

public void setSelectionControl(java.lang.String selectionControl)
Parameters:
selectionControl - The selectionControl to set.