@Entity public class MapPhysicalDesign extends PropertyOwner implements IMapPhysicalDesign, IOdiScenarioSource
| Modifier and Type | Class and Description |
|---|---|
static class |
MapPhysicalDesign.ExecutionLocationType
A way to categorize the execution location type of an execution unit.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NULL_STAGING_LOC_NAME |
| Modifier and Type | Method and Description |
|---|---|
ExecutionUnit |
createExecutionUnit(ILocation location)
Create a new execution unit in this physical design.
|
ExecutionUnitGroup |
createExecutionUnitGroup(java.lang.String name)
Create a new execution unit group with the specified name.
|
void |
dump(java.util.logging.Level level) |
MapPhysicalNode |
findAPNode(IMapComponent targetLogicalComponent)
Find an access point (AP) node associated with the specified target logical component.
|
ExecutionUnit |
findExecutionUnit(java.lang.String name)
Finds an execution unit with the specified name in this physical design.
|
ExecutionUnitGroup |
findExecutionUnitGroup(java.lang.String name)
Return an execution unit group with the specified name, or null if not found.
|
ILocation |
findLocation(java.lang.String locationName)
Find a location adapter object with the specified name, if any.
|
MapPhysicalNode |
findNode(IMapComponent logicalComponent)
Get the physical node that corresponds to the specified logical component
If there are multiple nodes for the logical component, an exception is thrown.
|
MapPhysicalNode |
findNode(IMapComponent logicalComponent,
java.util.Stack rmcStack)
Get the physical node that corresponds to the specified logical component.
|
MapPhysicalNode |
findNode(MapConnectorPoint logicalCP)
Get the physical node that corresponds to the specified logical connector point
If there are multiple nodes for the logical connector point, an exception is thrown.
|
MapPhysicalNode |
findNode(MapConnectorPoint logicalCP,
java.util.Stack rmcStack)
Get the physical node that corresponds to the specified logical connector point.
|
MapPhysicalNode |
findNodeByName(java.lang.String physNodeName)
Find a node with the specified physical node name.
|
MapPhysicalNode |
findNodeByPartialName(java.lang.String physNodeName)
Find a node whose name starts with the specified physical node name.
|
java.util.Set |
findNodes(IMapComponent logicalComponent,
java.util.Stack rmcStack)
Get the list of nodes corresponding to the specified logical component, or null if
there are no nodes corresponding to the component.
|
java.util.Set |
findNodes(MapConnectorPoint logicalCP,
java.util.Stack rmcStack)
Get the list of nodes corresponding to the specified logical connector point, or null if
there are no nodes corresponding to the connector point.
|
java.util.Set |
findNodes(java.lang.String logicalName)
Find a list of physical nodes corresponding to the specified logical component name, or null if not found.
|
java.util.Set |
findNodes(java.lang.String logicalName,
java.util.Stack rmcStack)
Find a list of physical nodes corresponding to the specified logical component name and RMC stack, or null if not found.
|
IScenario |
findScenario(java.lang.String qualifiedName)
Find the scenario with the specified name if any.
|
IScenario |
findScenario(java.lang.String name,
java.lang.String version)
Find the scenario with the specified name and version if any.
|
java.util.List |
getAllAPNodes()
Return all the access point (AP) nodes owned by this spec.
|
java.util.List |
getAllMapReferences() |
MapExpression |
getBeginCmd()
Gets the begin mapping command expression
|
ILogicalSchema |
getBeginCmdLogicalSchema()
Gets the logical schema assigned to begin mapping command.
|
ITechnology |
getBeginCmdTechnology()
Gets the technology assigned to begin mapping command.
|
java.lang.String |
getDisplayableTypeName() |
MapExpression |
getEndCmd()
Gets the end mapping command expression.
|
ILogicalSchema |
getEndCmdLogicalSchema()
Gets the logical schema assigned to end mapping command.
|
ITechnology |
getEndCmdTechnology()
Gets the technology assigned to begin mapping command.
|
IContext |
getExecutionContext()
Get the execution context that will be used when generating and executing this physical design.
|
ExecutionUnit |
getExecutionUnit(java.lang.String name)
Get an execution unit with the specified name.
|
java.util.List |
getExecutionUnitGroups()
Get all execution units groups in this physical design.
|
java.util.List |
getExecutionUnits()
Get the execution units in this physical design.
|
java.util.Set |
getExecutionUnitsForLoc(ILocation loc)
Get the set of execution units associated with the specified location.
|
java.util.Set |
getExecutionUnitsForLocName(java.lang.String locName)
Get the set of execution units associated with the specified location name.
|
IFolder |
getFolder()
Gets the folder which owns this physical designification.
|
java.lang.String |
getFullName() |
Mapping |
getMapping()
Get the mapping that owns this physical design.
|
IContext |
getOptimizationContext()
Get the default context object for this physical design.
|
java.lang.String |
getOptimizationContextName()
Gets the default or "optimization" context name for this physical design.
|
IPropertyOwner |
getOwner() |
java.util.List |
getPhysicalNodes()
Get a list of all physical nodes that exist in this physical design physical graph.
|
ExecutionUnit |
getPresetStagingExecutionUnit()
Return the staging execution unit which is specified by the staging
location property.
|
ILocation |
getPresetStagingLocation()
Return the staging location if one is specified by the staging
location property, else return null.
|
java.util.List |
getScenarios()
Get a list of all scenarios that were generated using this physical design.
|
java.util.List |
getSortedExecutionUnits()
Do a topological sort on the execution units, and return the sorted list.
|
java.util.List |
getSourceExecutionUnits()
Get a list of all execution units with no upstream connections to other execution units.
|
java.util.List |
getSourceExUnitList() |
java.util.List |
getStagingExUnitList() |
java.util.Date |
getSynchronizationDate() |
java.util.List |
getTargetExecutionUnits()
Get a list of all execution units with no downstream connections to other execution units.
|
java.util.List |
getTargetExUnitList() |
java.util.List |
getTargetNodes()
Get a list of all target nodes in the graph, which are nodes with no parent node (no downstream target node).
|
boolean |
isCleanupOnError()
Returns true if cleanup tasks should be performed on error, false otherwise.
|
boolean |
isConcurrent()
Returns true if concurrency enabled, false otherwise.
|
boolean |
isFrozen() |
boolean |
moveNodes(java.util.List nodes,
ExecutionUnit exUnit,
java.util.List issues)
Move a group of physical nodes to the specified execution unit, if possible.
|
void |
removeAllExecutionUnitGroups()
Remove all execution unit groups from this spec.
|
void |
removeAllExecutionUnits()
Remove all execution units from this physical design.
|
void |
removeExecutionUnit(ExecutionUnit exUnit)
Remove the specified execution unit from this physical design.
|
void |
removeScenario(IScenario scen)
Remove the specified scenario from the scenarios that are associated with this physical design.
|
void |
resetAllKMAssignments()
Set all node KM assignments back to the default assignment, if one is available.
|
void |
resetIKMs()
Reset all assigned IKMs in the spec to the default setting.
|
void |
resetSpec()
Resets the spec to the default configuration.
|
void |
resetSpec(java.util.List issues)
Resets the spec to the default configuration.
|
void |
setBeginCmd(java.lang.String beginCmd)
Sets the begin mapping command in text form.
|
void |
setBeginCmdLogicalSchema(ILogicalSchema lSchema)
Sets the logical schema for begin mapping command.
|
void |
setBeginCmdTechnology(ITechnology techno)
Sets the technology for begin mapping command.
|
void |
setCleanupOnError(boolean pCleanupOnError)
Cleanup tasks should be performed on error is
pCleanupOnError is true. |
void |
setConcurrent(boolean pConcurrent)
Enables concurrency if
pConcurrent is true and disables it otherwise. |
void |
setEndCmd(java.lang.String endCmd)
Sets the end mapping command in text form.
|
void |
setEndCmdLogicalSchema(ILogicalSchema lSchema)
Sets the logical schema for end mapping command.
|
void |
setEndCmdTechnology(ITechnology techno)
Sets the technology for begin mapping command.
|
void |
setExecutionContext(IContext context)
Set the execution context that will be used when generating and executing this physical design.
|
void |
setFrozen(boolean isFrozen)
Set the frozen value for this physical design.
|
void |
setName(java.lang.String name) |
void |
setOptimizationContext(IContext context)
Set the optimization context object for this physical design.
|
void |
setOptimizationContextByCode(java.lang.String contextCode)
Set the default or optimization context by context code.
|
void |
setOptimizationContextByName(java.lang.String name)
Set the default or "optimization" context for this physical design, by name.
|
void |
setStagingLocationName(java.lang.String locName)
Set the preset staging location by name.
|
void |
setSynchronizationDate(java.util.Date synchronizationDate) |
void |
syncWithLogicalMapping()
Synchronizes this physical design with its logical mapping.
|
void |
syncWithLogicalMapping(java.util.List issues)
Synchronizes this physical design with its logical mapping.
|
void |
syncWithLogicalMapping(java.util.List issues,
boolean skipValidation)
Synchronizes this physical design with its logical mapping.
|
java.lang.String |
toString() |
boolean |
validate(java.util.List result,
boolean debug) |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNamegetBigNumericId, getGlobalId, getNumericIdpublic java.util.Date getSynchronizationDate()
public void setSynchronizationDate(java.util.Date synchronizationDate)
public IContext getOptimizationContext() throws AdapterException
AdapterExceptionpublic java.lang.String getOptimizationContextName()
public void setOptimizationContextByName(java.lang.String name)
throws AdapterException,
MappingException
name - AdapterExceptionMappingExceptionpublic void setExecutionContext(IContext context)
context - The execution context.public IContext getExecutionContext() throws AdapterException
AdapterExceptionpublic void setStagingLocationName(java.lang.String locName)
throws MappingException,
AdapterException
locName - The name of the staging logical schema.MappingExceptionAdapterExceptionpublic ExecutionUnit getPresetStagingExecutionUnit() throws AdapterException, MappingException
AdapterExceptionMappingExceptionpublic ILocation getPresetStagingLocation() throws PropertyException, AdapterException
PropertyExceptionAdapterExceptionpublic void setOptimizationContextByCode(java.lang.String contextCode)
throws AdapterException,
MappingException
contextCode - The code (usually the same as the name) of the context object to
be used as the optimization context.AdapterExceptionMappingExceptionpublic void setOptimizationContext(IContext context) throws MappingException, AdapterException
context - The new default context object.AdapterExceptionPropertyExceptionMapPhysicalExceptionMapComponentExceptionMappingExceptionpublic java.util.Set findNodes(java.lang.String logicalName)
throws MapComponentException
logicalName - The name of the logical component for which nodes will be found.MapComponentExceptionpublic java.util.Set findNodes(java.lang.String logicalName,
java.util.Stack rmcStack)
throws MapComponentException
logicalName - The name of the logical component for which nodes will be found.rmcStack - The reusable mapping component stack context where the component resides.MapComponentExceptionpublic java.util.Set findNodes(IMapComponent logicalComponent, java.util.Stack rmcStack)
logicalComponent - The logical component for which to retrieve the list of
physical nodes.rmcStack - The reusable mapping component stack context where the component resides.public java.util.Set findNodes(MapConnectorPoint logicalCP, java.util.Stack rmcStack) throws AdapterException, MappingException
logicalCP - The logical connector point for which to retrieve the list of
physical nodes.rmcStack - The reusable mapping component stack context where the connector point resides.MappingExceptionAdapterExceptionpublic MapPhysicalNode findNode(IMapComponent logicalComponent) throws MapPhysicalException
logicalComponent - The logical component for which to retrieve the physical node.MapPhysicalExceptionpublic MapPhysicalNode findNode(IMapComponent logicalComponent, java.util.Stack rmcStack) throws MapPhysicalException
logicalComponent - The logical component for which to retrieve the physical node.MapPhysicalExceptionpublic MapPhysicalNode findNode(MapConnectorPoint logicalCP) throws AdapterException, MappingException
logicalCP - The logical connector point for which to retrieve the physical node.MappingExceptionAdapterExceptionpublic MapPhysicalNode findNode(MapConnectorPoint logicalCP, java.util.Stack rmcStack) throws AdapterException, MappingException
logicalCP - The logical connector point for which to retrieve the physical node.rmcStack - The RMC stack associated with the node.MappingExceptionAdapterExceptionpublic MapPhysicalNode findAPNode(IMapComponent targetLogicalComponent)
targetLogicalComponent - public MapPhysicalNode findNodeByName(java.lang.String physNodeName)
physNodeName - public MapPhysicalNode findNodeByPartialName(java.lang.String physNodeName)
physNodeName - public ExecutionUnit getExecutionUnit(java.lang.String name)
public void resetSpec(java.util.List issues)
throws MappingException,
AdapterException
issues - The issue list to populate with any errors or warnings when resetting the spec.
If the issues list calling parameter is null, then exceptions will be thrown instead.AdapterExceptionPropertyExceptionMapPhysicalExceptionMapComponentExceptionMappingExceptionpublic void resetSpec()
throws MappingException,
AdapterException
MapComponentExceptionMapPhysicalExceptionPropertyExceptionAdapterExceptionMappingExceptionpublic ILocation findLocation(java.lang.String locationName) throws AdapterException
AdapterExceptionpublic java.util.Set getExecutionUnitsForLoc(ILocation loc)
loc - The location (e.g. logical schema) for which to find execution units.AdapterExceptionpublic java.util.Set getExecutionUnitsForLocName(java.lang.String locName)
throws AdapterException
locName - The name of the location (e.g. logical schema).AdapterExceptionpublic boolean moveNodes(java.util.List nodes,
ExecutionUnit exUnit,
java.util.List issues)
nodes - The group of nodes to be moved.exUnit - The target execution unit for the nodes.issues - A list of issues that will be populated with errors or warnings that occurred when
attempting to move the nodes. If there are error or fatal level issues, then the nodes will
not be moved.public java.util.List getAllAPNodes()
public void resetAllKMAssignments()
throws MappingException,
AdapterException
MappingExceptionAdapterExceptionpublic java.util.List getTargetNodes()
public void syncWithLogicalMapping(java.util.List issues)
throws MappingException,
AdapterException
issues - The issue list to populate with any errors or warnings when syncing the spec.MapComponentExceptionAdapterExceptionPropertyExceptionMapPhysicalExceptionMappingExceptionpublic void syncWithLogicalMapping(java.util.List issues,
boolean skipValidation)
throws MappingException,
AdapterException
issues - The issue list to populate with any errors or warnings when syncing the spec.skipValidation - If true, then the logical mapping will not be validated before the synchronization begins.MapComponentExceptionAdapterExceptionPropertyExceptionMapPhysicalExceptionMappingExceptionpublic void syncWithLogicalMapping()
throws MappingException,
AdapterException
MapComponentExceptionMapPhysicalExceptionPropertyExceptionAdapterExceptionMappingExceptionpublic java.util.List getPhysicalNodes()
public void removeExecutionUnit(ExecutionUnit exUnit) throws AdapterException
exUnit - The execution unit to be removed.AdapterExceptionpublic void removeAllExecutionUnits()
throws AdapterException
AdapterExceptionpublic void removeAllExecutionUnitGroups()
public java.util.List getExecutionUnits()
public java.util.List getSortedExecutionUnits()
throws MappingException
MapPhysicalExceptionMappingExceptionpublic java.util.List getSourceExecutionUnits()
throws MappingException
MapPhysicalExceptionMappingExceptionpublic java.util.List getTargetExecutionUnits()
throws MappingException
MapPhysicalExceptionMappingExceptionpublic ExecutionUnit createExecutionUnit(ILocation location) throws MappingException, AdapterException
location - The location of the new execution unit. Allowed to be null if
the location is not yet known, the location can be set later.MappingExceptionAdapterExceptionpublic void setName(java.lang.String name)
throws MappingException
MappingExceptionpublic ExecutionUnit findExecutionUnit(java.lang.String name)
name - The name of the execution unit to find.public IPropertyOwner getOwner()
public Mapping getMapping()
public boolean validate(java.util.List result,
boolean debug)
public void dump(java.util.logging.Level level)
public java.lang.String getDisplayableTypeName()
public ExecutionUnitGroup createExecutionUnitGroup(java.lang.String name) throws MappingException
MapPhysicalExceptionMappingExceptionpublic java.util.List getExecutionUnitGroups()
public ExecutionUnitGroup findExecutionUnitGroup(java.lang.String name)
public java.util.List getScenarios()
throws AdapterException
AdapterExceptionpublic IScenario findScenario(java.lang.String qualifiedName) throws AdapterException
qualifiedName - The qualified name of the scenario.AdapterExceptionpublic IScenario findScenario(java.lang.String name, java.lang.String version) throws AdapterException
name - The name of the scenario to be found.version - The version of the scenrio to be found.AdapterExceptionpublic void removeScenario(IScenario scen)
scen - The scenario to be removed.public java.lang.String getFullName()
public IFolder getFolder()
IMapPhysicalDesigngetFolder in interface IMapPhysicalDesignpublic boolean isConcurrent()
public void setConcurrent(boolean pConcurrent)
pConcurrent is true and disables it otherwise. If concurrency is
enabled, then this spec can be run at the same time as other specs that are owned by the same mapping,
or at the same time as other specs that may create same-named staging tables. If concurrency is set,
then the C$ staging tables that are created are guaranteed to have unique names in the server where they
are created.pConcurrent - public boolean isCleanupOnError()
public void setCleanupOnError(boolean pCleanupOnError)
pCleanupOnError is true.pCleanupOnError - if cleanup tasks should be performed on error.public void setFrozen(boolean isFrozen)
isFrozen - The new value for the frozen flag for this spec.public boolean isFrozen()
public void resetIKMs()
throws MappingException,
AdapterException
AdapterExceptionMappingExceptionpublic java.util.List getSourceExUnitList()
public java.util.List getStagingExUnitList()
public java.util.List getTargetExUnitList()
public java.util.List getAllMapReferences()
public java.lang.String toString()
public MapExpression getBeginCmd() throws PropertyException
PropertyExceptionpublic void setBeginCmd(java.lang.String beginCmd)
throws PropertyException
beginCmd - the text for begin mapping commandPropertyExceptionpublic ITechnology getBeginCmdTechnology() throws PropertyException
PropertyExceptionpublic void setBeginCmdTechnology(ITechnology techno) throws PropertyException
techno - a technology to be assigned to begin mapping command.PropertyExceptionpublic ILogicalSchema getBeginCmdLogicalSchema() throws PropertyException
PropertyExceptionpublic void setBeginCmdLogicalSchema(ILogicalSchema lSchema) throws PropertyException
lSchema - a logical schema to be assigned to begin mapping command.PropertyExceptionpublic MapExpression getEndCmd() throws PropertyException
PropertyExceptionpublic void setEndCmd(java.lang.String endCmd)
throws PropertyException
endCmd - the text for end mapping commandPropertyExceptionpublic ITechnology getEndCmdTechnology() throws PropertyException
PropertyExceptionpublic void setEndCmdTechnology(ITechnology techno) throws PropertyException
techno - a technology to be assigned to begin mapping command.PropertyExceptionpublic ILogicalSchema getEndCmdLogicalSchema() throws PropertyException
PropertyExceptionpublic void setEndCmdLogicalSchema(ILogicalSchema lSchema) throws PropertyException
lSchema - a logical schema to be assigned to end mapping command.PropertyException