org.pf.tools.cda.base.model
Class SoftwareComponentDependency

java.lang.Object
  extended by org.pf.tools.cda.base.model.AnalyzableElementDependency<SoftwareComponent,SoftwareComponent>
      extended by org.pf.tools.cda.base.model.SoftwareComponentDependency
All Implemented Interfaces:
IDependency<SoftwareComponent,SoftwareComponent>, IObjectProperties

public class SoftwareComponentDependency
extends AnalyzableElementDependency<SoftwareComponent,SoftwareComponent>

Represents the dependency of one component (source) to another component (target).

Version:
1.0
Author:
M.Duchrow

Field Summary
static java.lang.String CONTAINS
           
static java.lang.String REQUIRES
           
 
Fields inherited from class org.pf.tools.cda.base.model.AnalyzableElementDependency
TXT_EXTENDS, TXT_IMPLEMENTS, TXT_NEEDS, TXT_USES
 
Constructor Summary
SoftwareComponentDependency(SoftwareComponent fromComponent, SoftwareComponent toComponent)
          Initialize the new instance with default values.
 
Method Summary
 SoftwareComponent getSource()
           
 SoftwareComponent getSourceElement()
          Returns the element that depends on the target element
 SoftwareComponent getTarget()
           
 SoftwareComponent getTargetElement()
          Returns the element the source element depends on
 
Methods inherited from class org.pf.tools.cda.base.model.AnalyzableElementDependency
getClassDependencies, getDependencyClassification, getDependencyType, getProperty, getPropertyNames, getWorkset, setProperty, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REQUIRES

public static final java.lang.String REQUIRES
See Also:
Constant Field Values

CONTAINS

public static final java.lang.String CONTAINS
See Also:
Constant Field Values
Constructor Detail

SoftwareComponentDependency

public SoftwareComponentDependency(SoftwareComponent fromComponent,
                                   SoftwareComponent toComponent)
Initialize the new instance with default values.

Method Detail

getSource

public SoftwareComponent getSource()

getTarget

public SoftwareComponent getTarget()

getSourceElement

public SoftwareComponent getSourceElement()
Returns the element that depends on the target element

Specified by:
getSourceElement in interface IDependency<SoftwareComponent,SoftwareComponent>
Specified by:
getSourceElement in class AnalyzableElementDependency<SoftwareComponent,SoftwareComponent>

getTargetElement

public SoftwareComponent getTargetElement()
Returns the element the source element depends on

Specified by:
getTargetElement in interface IDependency<SoftwareComponent,SoftwareComponent>
Specified by:
getTargetElement in class AnalyzableElementDependency<SoftwareComponent,SoftwareComponent>