|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deckfour.xes.info.impl.XAttributeInfoImpl
public class XAttributeInfoImpl
This class provides aggregate information about attributes within one container in the log type hierarchy. For example, it may store information about all event attributes in a log.
Constructor Summary | |
---|---|
XAttributeInfoImpl()
Creates a new attribute information registry. |
Method Summary | |
---|---|
Collection<String> |
getAttributeKeys()
Provides access to prototypes of all registered attributes' keys. |
Collection<XAttribute> |
getAttributes()
Provides access to prototypes of all registered attributes. |
Collection<XAttribute> |
getAttributesForExtension(XExtension extension)
For a given extension, returns prototypes of all registered attributes defined by that extension. |
Collection<XAttribute> |
getAttributesForType(Class<? extends XAttribute> type)
For a given type, returns prototypes of all registered attributes with that type. |
Collection<XAttribute> |
getAttributesWithoutExtension()
Returns prototypes of all registered attributes defined by no extension. |
int |
getFrequency(String key)
Returns the total frequency, i.e. |
int |
getFrequency(XAttribute attribute)
Returns the total frequency, i.e. |
Collection<String> |
getKeysForExtension(XExtension extension)
For a given extension, returns the keys of all registered attributes defined by that extension. |
Collection<String> |
getKeysForType(Class<? extends XAttribute> type)
For a given type, returns the keys of all registered attributes with that type. |
Collection<String> |
getKeysWithoutExtension()
Returns keys of all registered attributes defined by no extension. |
double |
getRelativeFrequency(String key)
Returns the relative frequency, i.e. |
double |
getRelativeFrequency(XAttribute attribute)
Returns the relative frequency, i.e. |
void |
register(XAttribute attribute)
Registers a concrete attribute with this registry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XAttributeInfoImpl()
Method Detail |
---|
public Collection<XAttribute> getAttributes()
XAttributeInfo
getAttributes
in interface XAttributeInfo
public Collection<String> getAttributeKeys()
XAttributeInfo
getAttributeKeys
in interface XAttributeInfo
public int getFrequency(String key)
XAttributeInfo
getFrequency
in interface XAttributeInfo
key
- Key of an attribute.
public int getFrequency(XAttribute attribute)
XAttributeInfo
getFrequency
in interface XAttributeInfo
attribute
- An attribute.
public double getRelativeFrequency(String key)
XAttributeInfo
getRelativeFrequency
in interface XAttributeInfo
key
- Key of an attribute.
public double getRelativeFrequency(XAttribute attribute)
XAttributeInfo
getRelativeFrequency
in interface XAttributeInfo
attribute
- An attribute.
public Collection<XAttribute> getAttributesForType(Class<? extends XAttribute> type)
XAttributeInfo
getAttributesForType
in interface XAttributeInfo
type
- Requested attribute type (type-specific attribute interface class).
public Collection<String> getKeysForType(Class<? extends XAttribute> type)
XAttributeInfo
getKeysForType
in interface XAttributeInfo
type
- Requested attribute type (type-specific attribute interface class).
public Collection<XAttribute> getAttributesForExtension(XExtension extension)
XAttributeInfo
getAttributesForExtension
in interface XAttributeInfo
extension
- Requested attribute extension.
public Collection<String> getKeysForExtension(XExtension extension)
XAttributeInfo
getKeysForExtension
in interface XAttributeInfo
extension
- Requested attribute extension.
public Collection<XAttribute> getAttributesWithoutExtension()
XAttributeInfo
getAttributesWithoutExtension
in interface XAttributeInfo
public Collection<String> getKeysWithoutExtension()
XAttributeInfo
getKeysWithoutExtension
in interface XAttributeInfo
public void register(XAttribute attribute)
attribute
- Attribute to be registered.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |