@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 IDDiscreteFactory
public static DiscreteFactory discrete(DiscreteResourceId parent, java.lang.Object child)
parent
- ID of the parentchild
- childDiscreteFactory
public static DiscreteFactory discrete(DeviceId device)
device
- device IDDiscreteFactory
public static DiscreteFactory discrete(DeviceId device, java.lang.Object... components)
device
- device IDcomponents
- resource ID components other than the device IDDiscreteFactory
public 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 numberDiscreteFactory
public static ContinuousFactory continuous(DeviceId device, java.lang.Class<?> cls)
device
- device IDcls
- type of resource the returned factory will createContinuousFactory
public 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.ContinuousFactory
public static ContinuousFactory continuous(DeviceId device, PortNumber port, java.lang.Class<?> cls)
device
- device IDport
- port numbercls
- type of resource the returned factory will createContinuousFactory
public 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