Package wt.configuration
Interface ConfigurationDelegate
public interface ConfigurationDelegate
The configuration package defines the concept of a configuration and
instances, but does not assert the definition of a structure. This delegate
is used by the configuration package to provide the implementation details
that define structure.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptiondoubleReturn the quantity of the link.getLinksConfiguringVersions(BaselineConfigurationConfigSpec configurationConfigSpec, QueryResult versions) Return the links calling out the versions passed.getLinksToSerialNumberedObjects(BaselineConfigurationConfigSpec configurationConfigSpec) Return the links calling out serial numbered objects in this configuration.wt.visitor.NavigatorgetNavigator(BaselineConfigurationVersion configuration, List<ConfigSpec> configSpecs) Returns the navigator used to populate a configuration.wt.visitor.NavigatorgetNavigator(BaselineConfigurationVersion configuration, ConfigSpec configSpec) Returns the navigator used to populate a configuration.getUnconfiguredElements(BaselineConfigurationConfigSpec configurationConfigSpec) Returns the unconfigured elements of the configuration.getUnconfiguredVersionsOf(BaselineConfigurationConfigSpec configurationConfigSpec, QueryResult versions) For the versions passed, return those no longer called out by anything in the configuration.voidvalidateAddToConfiguration(BaselineConfigurationVersion configuration, WTCollection configurationManageables) Validates whether or not the object can be added to the configuration, that is, whether or not it is called out by something else in the configuration.
-
Method Details
-
validateAddToConfiguration
void validateAddToConfiguration(BaselineConfigurationVersion configuration, WTCollection configurationManageables) throws WTException Validates whether or not the object can be added to the configuration, that is, whether or not it is called out by something else in the configuration. For example, if part 200.A is passed, and it is not used by anything in this configuration, it is not in the product's structure and is invalid. Remember to check both normal and override versions!
Supported API: true- Parameters:
configuration-configurationManageables-- Throws:
WTException
-
getUnconfiguredElements
QueryResult getUnconfiguredElements(BaselineConfigurationConfigSpec configurationConfigSpec) throws WTException Returns the unconfigured elements of the configuration. These are elements called out by configured versions for which there is no version in the configuration. For example, if part 100.A is in the configuration and uses part 200, but no version of 200 is in the configuration, 200 would be returned. Remember to include both normal and override versions!
Supported API: true- Parameters:
configurationConfigSpec-- Returns:
- QueryResult
- Throws:
WTException
-
getUnconfiguredVersionsOf
QueryResult getUnconfiguredVersionsOf(BaselineConfigurationConfigSpec configurationConfigSpec, QueryResult versions) throws WTException For the versions passed, return those no longer called out by anything in the configuration. Remember to include overrides in the check!
Supported API: true- Parameters:
configurationConfigSpec-versions-- Returns:
- QueryResult
- Throws:
WTException
-
getLinksConfiguringVersions
QueryResult getLinksConfiguringVersions(BaselineConfigurationConfigSpec configurationConfigSpec, QueryResult versions) throws WTException Return the links calling out the versions passed.
Supported API: true- Parameters:
configurationConfigSpec-versions-- Returns:
- QueryResult
- Throws:
WTException
-
getLinksToSerialNumberedObjects
QueryResult getLinksToSerialNumberedObjects(BaselineConfigurationConfigSpec configurationConfigSpec) throws WTException Return the links calling out serial numbered objects in this configuration.
Supported API: true- Parameters:
configurationConfigSpec-- Returns:
- QueryResult
- Throws:
WTException
-
getLinkQuantity
Return the quantity of the link.
Supported API: true- Parameters:
link-- Returns:
- double
- Throws:
WTException