public class Source extends java.lang.Object implements Externalizable, java.lang.Comparable<Source>
| Modifier and Type | Class and Description |
|---|---|
static class |
Source.Compound
Represents a compound source of the statistic (e.g.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONTROL_UNIT
Type control unit.
|
static java.lang.String |
DEVICE
Type device.
|
static Source |
SYSTEM
Source with
null type an null name. |
static java.lang.String |
USER
Type user.
|
| Constructor and Description |
|---|
Source()
Empty constructor for externalization.
|
Source(java.lang.String type,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Source other) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getName()
Returns the name of the source.
|
java.lang.String |
getType()
Returns the group of the source.
|
int |
hashCode() |
boolean |
isCompound() |
void |
readObject(java.io.InputStream is)
Use this method to deserializion of object state.
|
Source.Compound |
toCompound() |
java.lang.String |
toString() |
void |
writeObject(java.io.OutputStream os)
Use this method for serialization of object state.
|
public static final java.lang.String DEVICE
public static final java.lang.String CONTROL_UNIT
public static final java.lang.String USER
public static final Source SYSTEM
null type an null name.public Source()
public Source(java.lang.String type,
java.lang.String name)
public java.lang.String getType()
public java.lang.String getName()
public boolean isCompound()
public Source.Compound toCompound()
public void writeObject(java.io.OutputStream os)
throws java.io.IOException
ExternalizablewriteObject in interface Externalizablejava.io.IOExceptionpublic void readObject(java.io.InputStream is)
throws java.io.IOException
ExternalizablereadObject in interface Externalizablejava.io.IOExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.