@Beta
public final class Resources
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static ContinuousFactory |
continuous(DeviceId device,
java.lang.Class<?> cls)
Create a factory for continuous-type with the specified device ID and type.
|
static ContinuousFactory |
continuous(DeviceId device,
java.lang.Object... components)
Create a factory for continuous-type with the specified device ID and components.
|
static ContinuousFactory |
continuous(DeviceId device,
PortNumber port,
java.lang.Class<?> cls)
Create a factory for continuous-type with the specified device ID, port number and type.
|
static ContinuousFactory |
continuous(DeviceId device,
PortNumber port,
java.lang.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,
java.lang.Object... components)
Create a factory for discrete-type with the specified device ID and components.
|
static DiscreteFactory |
discrete(DeviceId device,
PortNumber port,
java.lang.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,
java.lang.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, java.lang.Object child)
parent - ID of the parentchild - childDiscreteFactorypublic static DiscreteFactory discrete(DeviceId device)
device - device IDDiscreteFactorypublic static DiscreteFactory discrete(DeviceId device, java.lang.Object... components)
device - device IDcomponents - resource ID components other than the device IDDiscreteFactorypublic static DiscreteFactory discrete(DeviceId device, PortNumber port, java.lang.Object... components)
device - device IDport - port numbercomponents - resource ID components other than the device ID and port numberDiscreteFactorypublic static ContinuousFactory continuous(DeviceId device, java.lang.Class<?> cls)
device - device IDcls - type of resource the returned factory will createContinuousFactorypublic static ContinuousFactory continuous(DeviceId device, java.lang.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, java.lang.Class<?> cls)
device - device IDport - port numbercls - type of resource the returned factory will createContinuousFactorypublic static ContinuousFactory continuous(DeviceId device, PortNumber port, java.lang.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