public interface Channel extends Comparable<Channel>
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(Annotation<?> aAnnotation)
Adds a new annotation to this channel.
|
void |
clearAnnotations()
Clears all annotations from this channel.
|
Collection<Annotation<?>> |
getAnnotations()
Returns all available annotations for this channel.
|
int |
getIndex()
Returns the index of this channel.
|
String |
getLabel()
Returns the (user defined) label for this channel.
|
int |
getMask()
Returns the bit-mask to use for this channel.
|
boolean |
hasName()
Returns whether or not this channel has a name.
|
boolean |
isEnabled()
Returns whether or not this channel is "enabled".
|
void |
setEnabled(boolean aEnabled)
Sets enabled to the given value.
|
void |
setLabel(String aName)
Sets name to the given value.
|
compareTo
void addAnnotation(Annotation<?> aAnnotation)
aAnnotation
- the annotation to add, cannot be null
.void clearAnnotations()
Collection<Annotation<?>> getAnnotations()
null
, never null
.int getIndex()
String getLabel()
null
.int getMask()
boolean hasName()
true
if a name is given to this channel,
false
otherwise.boolean isEnabled()
When a channel is enabled, it is visible in the signal diagram. When disabled, it is masked out from the signal diagram.
void setEnabled(boolean aEnabled)
aEnabled
- the enabled to set.void setLabel(String aName)
aName
- the name to set.Copyright © 2015 L'Xtreme IT consultancy. All rights reserved.