Class DependencyModelImpl

    • Constructor Detail

      • DependencyModelImpl

        public DependencyModelImpl()
    • Method Detail

      • addDependency

        public void addDependency​(Dependency dependency)
        Description copied from interface: DependencyModel
        Method, that adds a dependency to the dependency model.
        Specified by:
        addDependency in interface DependencyModel
        Parameters:
        dependency - The dependency to be added to the model.
      • addDependencies

        public void addDependencies​(Collection<Dependency> dependencies)
        Description copied from interface: DependencyModel
        Method, that adds a collection of dependencies to the dependency model.
        Specified by:
        addDependencies in interface DependencyModel
        Parameters:
        dependencies - The dependencies to be added to the model.
      • getDependencyTypesAsString

        public Set<String> getDependencyTypesAsString()
        Description copied from interface: DependencyModel
        Method, that returns the names of the dependency types, which were used in the dependencies, saved in the model.
        Specified by:
        getDependencyTypesAsString in interface DependencyModel
        Returns:
        A set of strings, containing the dependency type names.
      • getDependencyType

        public DependencyType getDependencyType​(String dependencyTypeName)
        Description copied from interface: DependencyModel
        Method, that gets the name of a dependency type and returns the corresponding object.
        Specified by:
        getDependencyType in interface DependencyModel
        Parameters:
        dependencyTypeName - The name of the specific dependency type.
        Returns:
        The required dependency type. If it does not exist, null is returned.
      • getDependencies

        public Set<Dependency> getDependencies​(String dependencyName,
                                               DataObject sourceObject,
                                               DataObject targetObject)
        Description copied from interface: DependencyModel
        Method, that returns a set of dependencies, that match the given name of the dependency class and the used source and target objects.
        Specified by:
        getDependencies in interface DependencyModel
        Parameters:
        dependencyName - The name of the dependency type.
        sourceObject - The source object used in the dependency.
        targetObject - The target object used in the dependency.
        Returns:
        A set of dependencies, that match the given constraints.
      • addDependencyType

        public void addDependencyType​(DependencyType dependencyType)
        Description copied from interface: DependencyModel
        Method, that stores a new dependency type in the model.
        Specified by:
        addDependencyType in interface DependencyModel
        Parameters:
        dependencyType - The dependency type, that should be added to the model.
      • addDependencySimilarity

        public void addDependencySimilarity​(DependencyType sourceDependencyType,
                                            DependencyType targetDependencyType,
                                            double similarity)
        Description copied from interface: DependencyModel
        Method, that stores a similarity between two dependency types. Both dependency types must exist in the model, otherwise, an exception is thrown.
        Specified by:
        addDependencySimilarity in interface DependencyModel
        Parameters:
        sourceDependencyType - The dependency type from which the similarity originates.
        targetDependencyType - The dependency type to which the similarity exists.
        similarity - The similarity value between those both dependency types.