public enum TransducersManager extends java.lang.Enum<TransducersManager>
Enum Constant and Description |
---|
INSTANCE
The singleton istance of this enum type
|
Modifier and Type | Method and Description |
---|---|
boolean |
addProbe(AbstractProbeId id,
TransducerId tId,
ISimpleProbe probe)
Adds a new resource and associate it to the transducer tId.
|
boolean |
createTransducer(java.lang.String className,
TransducerId id,
TupleCentreId tcId,
AbstractProbeId probeId)
Creates a new transducer
|
AbstractProbeId[] |
getProbes(TransducerId tId)
Returns the resource list associated to the transducer identified by tId
|
TransducerStandardInterface |
getTransducer(java.lang.String tId)
Returns the transducer identified by tId
|
TransducerId |
getTransducerId(EnvId probe)
Returns the transducer's identifier associated to the input resource
|
TransducerId[] |
getTransducerIds(TupleCentreId tcId)
Gets the list of transducer ids associated to the tuple centre identified
by tcId
|
TupleCentreId |
getTupleCentreId(TransducerId tId)
Returns the identifier of the tuple centre associated to the transducer
identified by tId
|
boolean |
removeProbe(AbstractProbeId probe)
Removes a probe from the resource list
|
void |
stopTransducer(TransducerId id)
Stops and removes the transducer identified by id
|
static TransducersManager |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransducersManager[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransducersManager INSTANCE
public static TransducersManager[] values()
for (TransducersManager c : TransducersManager.values()) System.out.println(c);
public static TransducersManager valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean addProbe(AbstractProbeId id, TransducerId tId, ISimpleProbe probe)
id
- new environment resource identifiertId
- transducer associatedprobe
- the probe itselfpublic boolean createTransducer(java.lang.String className, TransducerId id, TupleCentreId tcId, AbstractProbeId probeId) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, java.lang.NoSuchMethodException, java.lang.reflect.InvocationTargetException
className
- name of the concrete implementative class of transducerid
- the transducer's identifiertcId
- the tuple center with which the transducer will interactprobeId
- resource's identifier associated to the transducerjava.lang.ClassNotFoundException
- if the given Java full class name cannot be found within
known pathsjava.lang.NoSuchMethodException
- if the Java method name cannot be foundjava.lang.InstantiationException
- if the given Java class cannot be instantiatedjava.lang.IllegalAccessException
- if the caller has no rights to access class, methods, or
fieldsjava.lang.reflect.InvocationTargetException
- if the callee cannot be foundpublic AbstractProbeId[] getProbes(TransducerId tId)
tId
- the transducer's identifierpublic TransducerStandardInterface getTransducer(java.lang.String tId)
tId
- the transducer's namepublic TransducerId getTransducerId(EnvId probe)
probe
- resource associated to the transducerpublic TransducerId[] getTransducerIds(TupleCentreId tcId)
tcId
- the tuple centre's identifierpublic TupleCentreId getTupleCentreId(TransducerId tId)
tId
- the transducer's identifierpublic boolean removeProbe(AbstractProbeId probe)
probe
- the resource's identifier to removepublic void stopTransducer(TransducerId id)
id
- the transducer identifier