TankSystem
Inherits: System
Functions
plugTank
Plug in a tank to inlet or outlet
Resolves network
function plugTank(bytes32 _tankEntity, bytes32 _targetEntity) public;
Parameters
Name | Type | Description |
---|---|---|
_tankEntity | bytes32 | Id of tank entity |
_targetEntity | bytes32 | Id of inlet or outlet entity |
unplugTank
Unplug a tank from inlet or outlet
Resolves network
function unplugTank(bytes32 _tankEntity) public;
Parameters
Name | Type | Description |
---|---|---|
_tankEntity | bytes32 | Id of tank entity |
emptyTank
Empty a tank
function emptyTank(bytes32 _tankEntity) public;
Parameters
Name | Type | Description |
---|---|---|
_tankEntity | bytes32 | Id of tank entity |
shipTank
Ship a tank to fulfill an order
Compares the tank to the current order goals and complete the order if goals are met
function shipTank(bytes32 _tankEntity) public;
Parameters
Name | Type | Description |
---|---|---|
_tankEntity | bytes32 | Id of the tank entity |