public class ModelStats
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.log4j.Logger |
_logger |
private UmlModel |
_model |
private java.util.Map<OwningWg,java.util.Collection<UmlAssociation>> |
_scopedAssociations |
private java.util.Map<OwningWg,java.util.Collection<UmlAttribute>> |
_scopedAttributes |
private java.util.Map<OwningWg,java.util.Collection<UmlClass>> |
_scopedClasses |
private Counter |
_scopedCounter |
private java.util.Map<OwningWg,java.util.Collection<UmlDependency>> |
_scopedDependencies |
private java.util.Map<OwningWg,java.util.Collection<UmlDiagram>> |
_scopedDiagrams |
private java.util.Map<OwningWg,java.util.Collection<UmlOperation>> |
_scopedOperations |
private java.util.Map<OwningWg,java.util.Collection<UmlPackage>> |
_scopedPackages |
private java.util.Map<OwningWg,java.util.Map<java.lang.String,java.util.Set<UmlObject>>> |
_scopedTags |
private java.util.Map<Nature,java.util.Collection<StatsPerOwner>> |
_statsPerNature |
private static int |
DO_DESC_CHAR_COUNT |
Constructor and Description |
---|
ModelStats(UmlModel model)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private java.util.Collection<java.lang.String> |
formatLines() |
int |
getAssociationCount() |
int |
getAttributeCount() |
int |
getClassCount() |
int |
getDependencyCount() |
int |
getDiagramCount() |
UmlModel |
getModel() |
int |
getOperationCount() |
int |
getPackageCount() |
java.util.Map<OwningWg,java.util.Collection<UmlAssociation>> |
getScopedAssociations() |
java.util.Map<OwningWg,java.util.Collection<UmlAttribute>> |
getScopedAttributes() |
java.util.Map<OwningWg,java.util.Collection<UmlClass>> |
getScopedClasses() |
java.util.Map<OwningWg,java.util.Collection<UmlDependency>> |
getScopedDependencies() |
java.util.Map<OwningWg,java.util.Collection<UmlDiagram>> |
getScopedDiagrams() |
java.util.Map<OwningWg,java.util.Collection<UmlOperation>> |
getScopedOperations() |
java.util.Map<OwningWg,java.util.Collection<UmlPackage>> |
getScopedPackages() |
java.util.Map<OwningWg,java.util.Map<java.lang.String,java.util.Set<UmlObject>>> |
getScopedTags() |
java.util.Map<Nature,java.util.Collection<StatsPerOwner>> |
getStatsPerNature() |
int |
getTagNamesCount() |
private Counter |
initModelCounter(UmlModel model) |
private java.util.Map<Nature,java.util.Collection<StatsPerOwner>> |
initStatsPerNature(UmlModel model) |
void |
logAbbreviatedTermUsage(org.apache.log4j.Level level)
(IEC61850) For every abbreviated term, logs DOs using it; opposite to
logDONameDecomposition(Level) . |
void |
logAggregationsWithWgClasses(org.apache.log4j.Level level,
OwningWg wg) |
void |
logAttributesWithConstraints(org.apache.log4j.Level level) |
void |
logCimNoncimAssociations(org.apache.log4j.Level level) |
void |
logClasses(org.apache.log4j.Level level) |
void |
logClassesWithAttributeConstraints(org.apache.log4j.Level level) |
void |
logDONameDecomposition(org.apache.log4j.Level level)
(IEC61850) For every DO, logs abbreviations used; opposite to
logAbbreviatedTermUsage(Level) . |
void |
logMultivaluedAttributes(org.apache.log4j.Level level) |
void |
logNamespaceInfos(org.apache.log4j.Level level) |
void |
logNormativeAssociationsWithWgClasses(org.apache.log4j.Level level,
OwningWg wg) |
void |
logNormativeClasses(org.apache.log4j.Level level,
java.util.EnumSet<OwningWg> wgs) |
void |
logOperations(org.apache.log4j.Level level) |
void |
logPackages(org.apache.log4j.Level level) |
void |
logStats() |
void |
logTaggedValues(org.apache.log4j.Level level) |
void |
logVersionInfos(org.apache.log4j.Level level) |
java.lang.String |
toHtml() |
java.lang.String |
toString() |
private static final org.apache.log4j.Logger _logger
private static final int DO_DESC_CHAR_COUNT
private final Counter _scopedCounter
private final java.util.Map<OwningWg,java.util.Collection<UmlPackage>> _scopedPackages
private final java.util.Map<OwningWg,java.util.Collection<UmlAttribute>> _scopedAttributes
private final java.util.Map<OwningWg,java.util.Collection<UmlAssociation>> _scopedAssociations
private final java.util.Map<OwningWg,java.util.Collection<UmlOperation>> _scopedOperations
private final java.util.Map<OwningWg,java.util.Collection<UmlDependency>> _scopedDependencies
private final java.util.Map<OwningWg,java.util.Collection<UmlDiagram>> _scopedDiagrams
private final java.util.Map<OwningWg,java.util.Map<java.lang.String,java.util.Set<UmlObject>>> _scopedTags
private final java.util.Map<Nature,java.util.Collection<StatsPerOwner>> _statsPerNature
private final UmlModel _model
public ModelStats(UmlModel model)
model
- private java.util.Map<Nature,java.util.Collection<StatsPerOwner>> initStatsPerNature(UmlModel model)
public java.util.Map<OwningWg,java.util.Collection<UmlPackage>> getScopedPackages()
public int getPackageCount()
public int getClassCount()
public java.util.Map<OwningWg,java.util.Collection<UmlAttribute>> getScopedAttributes()
public int getAttributeCount()
public java.util.Map<OwningWg,java.util.Collection<UmlAssociation>> getScopedAssociations()
public int getAssociationCount()
public java.util.Map<OwningWg,java.util.Collection<UmlOperation>> getScopedOperations()
public int getOperationCount()
public java.util.Map<OwningWg,java.util.Collection<UmlDependency>> getScopedDependencies()
public int getDependencyCount()
public java.util.Map<OwningWg,java.util.Collection<UmlDiagram>> getScopedDiagrams()
public int getDiagramCount()
public java.util.Map<OwningWg,java.util.Map<java.lang.String,java.util.Set<UmlObject>>> getScopedTags()
public int getTagNamesCount()
public java.util.Map<Nature,java.util.Collection<StatsPerOwner>> getStatsPerNature()
public UmlModel getModel()
public void logStats()
private java.util.Collection<java.lang.String> formatLines()
public java.lang.String toHtml()
public java.lang.String toString()
toString
in class java.lang.Object
public void logPackages(org.apache.log4j.Level level)
public void logClasses(org.apache.log4j.Level level)
public void logOperations(org.apache.log4j.Level level)
public void logNormativeClasses(org.apache.log4j.Level level, java.util.EnumSet<OwningWg> wgs)
public void logNormativeAssociationsWithWgClasses(org.apache.log4j.Level level, OwningWg wg)
public void logAggregationsWithWgClasses(org.apache.log4j.Level level, OwningWg wg)
public void logCimNoncimAssociations(org.apache.log4j.Level level)
public void logClassesWithAttributeConstraints(org.apache.log4j.Level level)
public void logAttributesWithConstraints(org.apache.log4j.Level level)
public void logMultivaluedAttributes(org.apache.log4j.Level level)
public void logNamespaceInfos(org.apache.log4j.Level level)
public void logVersionInfos(org.apache.log4j.Level level)
public void logTaggedValues(org.apache.log4j.Level level)
public void logDONameDecomposition(org.apache.log4j.Level level)
logAbbreviatedTermUsage(Level)
.public void logAbbreviatedTermUsage(org.apache.log4j.Level level)
logDONameDecomposition(Level)
.Copyright 2009-2015 Tatjana (Tanja) Kostic