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
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
Methods
🦠toObject
Get a plain object representation of this Position
instance.
Signature
Returns
Description | Type |
the object | object |
🦠toString
Get a string representation of this Position
instance.
Signature
Returns
Description | Type |
the JSON representation | string |
🦠toStruct
Get a struct representation of this Position
instance.
Signature
Returns
Description | Type |
the struct | Array |
🦠clone
Clone this Position
instance.
Signature
Returns
Description | Type |
the cloned instance | Position |
🦠isValid
Is this Position
instance valid?
Signature
Returns
Description | Type |
true if the instance is valid | boolean |