Class Pipeline.NodeInfo

Definition

Namespace:
Tizen.MachineLearning.Inference
Assembly:
Tizen.MachineLearning.Inference.dll

NodeInfo class for node information in pipeline. Note that, node is depend on the pipeline. If the pipeline is closed, all the node information is invalid.

C#
Copy
public abstract class Pipeline.NodeInfo
Inheritance
object
Pipeline.NodeInfo
Derived

Constructors

View Source

NodeInfo(NodeType, string, Pipeline)

Creates a new NodeInfo instance with the given node information

Declaration
C#
Copy
protected NodeInfo(Pipeline.NodeType type, string name, Pipeline pipe)
Parameters
Type Name Description
Pipeline.NodeType type

The node type.

string name

The node name.

Pipeline pipe

The Pipeline instance the node included.

Properties

View Source

Name

The node name.

Declaration
C#
Copy
public string Name { get; }
Property Value
Type Description
string
View Source

Type

The node type.

Declaration
C#
Copy
public Pipeline.NodeType Type { get; }
Property Value
Type Description
Pipeline.NodeType
View Source

Valid

The flag to indicate valid state.

Declaration
C#
Copy
public bool Valid { get; }
Property Value
Type Description
bool

Methods

View Source

GetValue(string, out bool)

Gets the boolean of node's property in NNStreamer pipelines.

Declaration
C#
Copy
public void GetValue(string propertyName, out bool retValue)
Parameters
Type Name Description
string propertyName

The property name.

bool retValue

On return, a boolean value.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when the method failed due to an invalid parameter.

View Source

GetValue(string, out double)

Gets the floating-point value of node's property in NNStreamer pipelines.

Declaration
C#
Copy
public void GetValue(string propertyName, out double retValue)
Parameters
Type Name Description
string propertyName

The property name.

double retValue

On return, a floating-point value.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when the method failed due to an invalid parameter.

View Source

GetValue(string, out int)

Gets the integer (i.e. System.Int32) of node's property in NNStreamer pipelines.

Declaration
C#
Copy
public void GetValue(string propertyName, out int retValue)
Parameters
Type Name Description
string propertyName

The property name.

int retValue

On return, a integer value.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when the method failed due to an invalid parameter.

View Source

GetValue(string, out long)

Gets the long integer (i.e. System.Int64) of node's property in NNStreamer pipelines.

Declaration
C#
Copy
public void GetValue(string propertyName, out long retValue)
Parameters
Type Name Description
string propertyName

The property name.

long retValue

On return, a long integer value.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when the method failed due to an invalid parameter.

View Source

GetValue(string, out string)

Gets the string of node's property in NNStreamer pipelines.

Declaration
C#
Copy
public void GetValue(string propertyName, out string retValue)
Parameters
Type Name Description
string propertyName

The property name.

string retValue

On return, a string value.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when the method failed due to an invalid parameter.

View Source

GetValue(string, out uint)

Gets the unsigned integer (i.e. System.UInt32) of node's property in NNStreamer pipelines.

Declaration
C#
Copy
public void GetValue(string propertyName, out uint retValue)
Parameters
Type Name Description
string propertyName

The property name.

uint retValue

On return, a unsigned integer value.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when the method failed due to an invalid parameter.

View Source

GetValue(string, out ulong)

Gets the unsigned long integer (i.e. System.UInt64) of node's property in NNStreamer pipelines.

Declaration
C#
Copy
public void GetValue(string propertyName, out ulong retValue)
Parameters
Type Name Description
string propertyName

The property name.

ulong retValue

On return, a unsigned long integer value.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when the method failed due to an invalid parameter.

View Source

GetValue<T>(string)

Get the value of node's property in NNStreamer pipelines.

Declaration
C#
Copy
public T GetValue<T>(string propertyName)
Parameters
Type Name Description
string propertyName

The property name.

Returns
Type Description
T

The value of given property.

Type Parameters
Name Description
T

The value type of given property.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when the method failed due to an invalid parameter.

View Source

SetValue(string, bool)

Sets the boolean of node's property in NNStreamer pipelines.

Declaration
C#
Copy
public void SetValue(string propertyName, bool value)
Parameters
Type Name Description
string propertyName

The property name.

bool value

The boolean value of given property.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when the method failed due to an invalid parameter.

View Source

SetValue(string, double)

Gets the floating-point value of node's property in NNStreamer pipelines.

Declaration
C#
Copy
public void SetValue(string propertyName, double value)
Parameters
Type Name Description
string propertyName

The property name.

double value

The floating-point value of given property.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when the method failed due to an invalid parameter.

View Source

SetValue(string, int)

Sets the integer (i.e. System.Int32) of node's property in NNStreamer pipelines.

Declaration
C#
Copy
public void SetValue(string propertyName, int value)
Parameters
Type Name Description
string propertyName

The property name.

int value

The integer value of given property.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when the method failed due to an invalid parameter.

View Source

SetValue(string, long)

Sets the long integer (i.e. System.Int64) of node's property in NNStreamer pipelines.

Declaration
C#
Copy
public void SetValue(string propertyName, long value)
Parameters
Type Name Description
string propertyName

The property name.

long value

The long integer value of given property.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when the method failed due to an invalid parameter.

View Source

SetValue(string, string)

Sets the string of node's property in NNStreamer pipelines.

Declaration
C#
Copy
public void SetValue(string propertyName, string value)
Parameters
Type Name Description
string propertyName

The property name.

string value

The string of given property.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when the method failed due to an invalid parameter.

View Source

SetValue(string, uint)

Sets the unsigned integer (i.e. System.UInt32) of node's property in NNStreamer pipelines.

Declaration
C#
Copy
public void SetValue(string propertyName, uint value)
Parameters
Type Name Description
string propertyName

The property name.

uint value

The unsigned integer value of given property.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when the method failed due to an invalid parameter.

View Source

SetValue(string, ulong)

Sets the unsigned long integer (i.e. System.UInt64) of node's property in NNStreamer pipelines.

Declaration
C#
Copy
public void SetValue(string propertyName, ulong value)
Parameters
Type Name Description
string propertyName

The property name.

ulong value

The unsigned long integer value of given property.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when the method failed due to an invalid parameter.