TankSystem

Git Source

Inherits: System

Functions

plugTank

Plug in a tank to inlet or outlet

Resolves network

function plugTank(bytes32 _tankEntity, bytes32 _targetEntity) public;

Parameters

NameTypeDescription
_tankEntitybytes32Id of tank entity
_targetEntitybytes32Id of inlet or outlet entity

unplugTank

Unplug a tank from inlet or outlet

Resolves network

function unplugTank(bytes32 _tankEntity) public;

Parameters

NameTypeDescription
_tankEntitybytes32Id of tank entity

emptyTank

Empty a tank

function emptyTank(bytes32 _tankEntity) public;

Parameters

NameTypeDescription
_tankEntitybytes32Id 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

NameTypeDescription
_tankEntitybytes32Id of the tank entity