C# Class Yodiwo.API.Plegma.Port

Afficher le fichier Open project: yodiwo/plegma Class Usage Examples

Méthodes publiques

Свойство Type Description
Color string
ConfFlags ePortConf
Description string
LastUpdatedTimestamp ulong
Name string
PortKey string
PortModelId string
RevNum uint
Semantics string
Size int
State string
Type ePortType
ioDirection ioPortDirection

Méthodes publiques

Méthode Description
DeepClone ( ) : Port
GetStateObject ( ) : object
IncRevNum ( ) : void
IsNumeric ( ) : bool
Port ( ) : System
Port ( PortKey portKey, ePortType type, ioPortDirection ioDirection, string portmodelid = null ) : System
SetState ( string newState, System.DateTime timestamp = null ) : void
State2Value ( ePortType portType, string state ) : object
ToString ( ) : string
Update ( Port otherPort ) : void
Update_Except_States ( Port otherPort ) : void
Value2State ( object value ) : string
ePortType2Type ( ePortType PortType ) : Type

Method Details

DeepClone() public méthode

public DeepClone ( ) : Port
Résultat Port

GetStateObject() public méthode

public GetStateObject ( ) : object
Résultat object

IncRevNum() public méthode

public IncRevNum ( ) : void
Résultat void

IsNumeric() public méthode

public IsNumeric ( ) : bool
Résultat bool

Port() public méthode

public Port ( ) : System
Résultat System

Port() public méthode

public Port ( PortKey portKey, ePortType type, ioPortDirection ioDirection, string portmodelid = null ) : System
portKey PortKey
type ePortType
ioDirection ioPortDirection
portmodelid string
Résultat System

SetState() public méthode

public SetState ( string newState, System.DateTime timestamp = null ) : void
newState string
timestamp System.DateTime
Résultat void

State2Value() public static méthode

public static State2Value ( ePortType portType, string state ) : object
portType ePortType
state string
Résultat object

ToString() public méthode

public ToString ( ) : string
Résultat string

Update() public méthode

public Update ( Port otherPort ) : void
otherPort Port
Résultat void

Update_Except_States() public méthode

public Update_Except_States ( Port otherPort ) : void
otherPort Port
Résultat void

Value2State() public static méthode

public static Value2State ( object value ) : string
value object
Résultat string

ePortType2Type() public static méthode

public static ePortType2Type ( ePortType PortType ) : Type
PortType ePortType
Résultat System.Type

Property Details

Color public_oe property

Color of port value
public string Color
Résultat string

ConfFlags public_oe property

Configuration flags for port
public ePortConf ConfFlags
Résultat ePortConf

Description public_oe property

Description of Port to show in Cyan (tooltip, etc)
public string Description
Résultat string

LastUpdatedTimestamp public_oe property

Timestamp of the last action that updated the port value and/or revision number
public ulong LastUpdatedTimestamp
Résultat ulong

Name public_oe property

Friendly name of this Port (as it will appear in the Cyan UI and blocks)
public string Name
Résultat string

PortKey public_oe property

Globally unique string identifying this port; Construct it using the PortKey constructor
public string PortKey
Résultat string

PortModelId public_oe property

id of Port that can Match to a ThingModelType
public string PortModelId
Résultat string

RevNum public_oe property

Port state sequence number: incremented by the Cloud server at every state update, so that Node and servers stay in sync
public uint RevNum
Résultat uint

Semantics public_oe property

semantics of values that Port sends / receives
public string Semantics
Résultat string

Size public_oe property

Size of port value
public int Size
Résultat int

State public_oe property

Current (at latest update/sampling/trigger/etc) value of Port as String. Contains a string representation of the port's state, encoded according to the port's ePortType On receiving events the Cloud Server will attempt to parse the State based on its ePortType When sending events the Cloud Server will encode the new state into a string, again according to the Port's ePortType
public string State
Résultat string

Type public_oe property

type (ePortType) of values that each Port sends / receives
public ePortType Type
Résultat ePortType

ioDirection public_oe property

Direction (ioPortDirection) of Port
public ioPortDirection ioDirection
Résultat ioPortDirection