Class Level

java.lang.Object
pl.gdela.socomo.composition.Level

public class Level
extends java.lang.Object
Level at which we model source code composition. Level name is actually a java package name, all sibling and parent packages are not included in determining the composition. Only code in subpackages (transitively) forms components of this level.
  • Field Summary

    Fields
    Modifier and Type Field Description
    java.util.Collection<Component> components  
    java.util.Collection<ComponentDep> dependencies  
    java.lang.String name  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String formatted()
    Returns a human-friendly, textual multiline representation of the level.
    int maxComponentSize()  
    int maxDependencyStrength()  
    int sumComponentSize()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • name

      public final java.lang.String name
    • components

      public java.util.Collection<Component> components
    • dependencies

      public java.util.Collection<ComponentDep> dependencies
  • Method Details

    • maxComponentSize

      public int maxComponentSize()
    • sumComponentSize

      public int sumComponentSize()
    • maxDependencyStrength

      public int maxDependencyStrength()
    • formatted

      public java.lang.String formatted()
      Returns a human-friendly, textual multiline representation of the level.