public abstract class ControllableBase extends NamedBaseImpl implements Controllable
Modifier | Constructor and Description |
---|---|
protected |
ControllableBase(int id,
java.lang.String name,
java.lang.String description,
TimerFactoryImpl factory) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<ControllableBase> |
contents()
Return an unmodifiable set of the contents of this Controllable.
|
java.lang.String |
description()
A longer description giving some details of the meaning of this
Controllable.
|
void |
disable()
Disable this controllable.
|
void |
enable()
Enable this controllable.
|
int |
id()
A small id for this controllable.
|
boolean |
isEnabled()
Return true if enable() was called, otherwise false if enable() was never
called, or disable() was last called.
|
factory
equals, hashCode, name, setFactory, toString
protected ControllableBase(int id, java.lang.String name, java.lang.String description, TimerFactoryImpl factory)
public int id()
Controllable
id
in interface Controllable
public java.lang.String description()
Controllable
description
in interface Controllable
public final boolean isEnabled()
Controllable
isEnabled
in interface Controllable
public java.util.Set<ControllableBase> contents()
Controllable
contents
in interface Controllable
public void enable()
Controllable
enable
in interface Controllable
public void disable()
Controllable
disable
in interface Controllable