Position

  • View Struct in FismoTypes.sol
  • View Class Position.js
  • Machine and state, the longitude and latitude of Fismo.
  • For recording history and reporting current position of a user.

Constructor

Signature

constructor (
    machineId, 
    stateId
)

Parameters

Name Description Type
machineId keccak256 hash of machine name string
name keccak256 hash of state name string

Static Members

Methods

🦠 fromObject

Get a new Position instance from an object representation.

Signature

Position.fromObject(o)

Parameters

Name Description Type
o the plain object object

Returns

Description Type
the instance Position

🦠 fromStruct

Get a new Position instance from a struct representation.

Signature

Position.fromStruct(struct)

Parameters

Name Description Type
struct the struct Array

Returns

Description Type
the instance Position

Instance Members

Properties

  • machineId
  • stateId

Methods

🦠 toObject

Get a plain object representation of this Position instance.

Signature

instance.toObject()

Returns

Description Type
the object object

🦠 toString

Get a string representation of this Position instance.

Signature

instance.toString()

Returns

Description Type
the JSON representation string

🦠 toStruct

Get a struct representation of this Position instance.

Signature

instance.toStruct()

Returns

Description Type
the struct Array

🦠 clone

Clone this Position instance.

Signature

instance.clone()

Returns

Description Type
the cloned instance Position

🦠 isValid

Is this Position instance valid?

Signature

instance.isValid()

Returns

Description Type
true if the instance is valid boolean