@Beta public final class Resources extends Object
| Modifier and Type | Method and Description |
|---|---|
static ContinuousFactory |
continuous(DeviceId device,
Class<?> cls)
Create a factory for continuous-type with the specified device ID and type.
|
static ContinuousFactory |
continuous(DeviceId device,
Object... components)
Create a factory for continuous-type with the specified device ID and components.
|
static ContinuousFactory |
continuous(DeviceId device,
PortNumber port,
Class<?> cls)
Create a factory for continuous-type with the specified device ID, port number and type.
|
static ContinuousFactory |
continuous(DeviceId device,
PortNumber port,
Object... components)
Create a factory for continuous-type with the specified device ID and components.
|
static DiscreteFactory |
discrete(DeviceId device)
Create a factory for discrete-type with the specified device ID.
|
static DiscreteFactory |
discrete(DeviceId device,
Object... components)
Create a factory for discrete-type with the specified device ID and components.
|
static DiscreteFactory |
discrete(DeviceId device,
PortNumber port,
Object... components)
Create a factory for discrete-type with the specified device ID, port number and components.
|
static DiscreteFactory |
discrete(DiscreteResourceId id)
Create a factory for discrete-type with the specified resource ID.
|
static DiscreteFactory |
discrete(DiscreteResourceId parent,
Object child)
Creates a factory for discrete-type with the specified parent ID and child.
|
public static DiscreteFactory discrete(DiscreteResourceId id)
id - resource IDDiscreteFactorypublic static DiscreteFactory discrete(DiscreteResourceId parent, Object child)
parent - ID of the parentchild - childDiscreteFactorypublic static DiscreteFactory discrete(DeviceId device)
device - device IDDiscreteFactorypublic static DiscreteFactory discrete(DeviceId device, Object... components)
device - device IDcomponents - resource ID components other than the device IDDiscreteFactorypublic static DiscreteFactory discrete(DeviceId device, PortNumber port, Object... components)
device - device IDport - port numbercomponents - resource ID components other than the device ID and port numberDiscreteFactorypublic static ContinuousFactory continuous(DeviceId device, Class<?> cls)
device - device IDcls - type of resource the returned factory will createContinuousFactorypublic static ContinuousFactory continuous(DeviceId device, Object... components)
Class instance. Otherwise,
an IllegalArgumentException is thrown.device - device IDcomponents - resource ID components other than the device ID.ContinuousFactorypublic static ContinuousFactory continuous(DeviceId device, PortNumber port, Class<?> cls)
device - device IDport - port numbercls - type of resource the returned factory will createContinuousFactorypublic static ContinuousFactory continuous(DeviceId device, PortNumber port, Object... components)
Class instance. Otherwise,
an IllegalArgumentException is thrown.device - device IDport - port numbercomponents - resource ID components other than the device ID and port number.ContinuousFactory