grail.ip.equtils Module

Version: 16.2

Table of Contents

Overview

This module provides a set of useful utility routines for equipment reporting with MineSight® Interactive Planner.

Functions

gettruckcap(setup, eqset)
Given the equipment dictionary and an equipment set index, will return you the capacity.
gettruckeff(setup, eqset)
Given the equipment dictionary and an equipment set index, will return truck efficiency.
gettruckavail(setup, eqset)
Given the equipment dictionary and an equipment set index,will return truck availability.
getloadtime(setup, eqset)
Given the equipment dictionary and an equipment set index, will return load time.
getshovelcap(setup, eqset)
Given the equipment dictionary and an equipment set index, will return shovel capacity.
getshoveleff(setup, eqset)
Given the equipment dictionary and an equipment set index, will return shovel efficiency.
getshovelavail(setup, eqset)
Given the equipment dictionary and an equipment set index, will return shovel availability.
getudefinedbenchattr(setup)
Given the equipment dictionary, will return user defined bench attribute.
getudefinedpushbackattr(setup)
Given the equipment dictionary, will return user defined pushback attribute.
returnifkey(sdict, key)
Utility to check to see if a key is in a dictionary. Arguments are the dictionary and the key to test.
getcycletimefilename(setup)
Given the equipment dictionary, returns the cycle time filename.
getcycletimefiletype(setup)
Given the equipment dictionary, will return type of cycle time file (not currently used).
getproductivityflag(setup)
Given the equipment dictionary, returns a 1 if using productivities.
getnumdest(setup)
Given the equipment dictionary, returns the number of destination records.
getdestrec(setup, idx)
Given the equipment dictionary and a destination record index, returns the destination record.
getnumtrucks(setup)
Given the equipment dictionary, returns the number of trucks.
gettruck(setup, idx)
Given the equipment dictionary and truck index, returns the truck.
getnumshovels(setup)
Given the equipment dictionary, returns the number of shovels.
getshovel(setup, idx)
Given the equipment dictionary and shovel index, returns the shovel.
getnumaux(setup)
Given the equipment dictionary, returns the number of auxiliary equipment.
getaux(setup, idx)
Given the equipment dictionary and the auxiliary equipment index, returns the auxiliary equipment.
getnumequipsets(setup)
Given the equipment dictionary, returns the number of equipment sets.
getequipsetbyidx(setup, idx)
Given the equipment dictionary and an equipment set index, returns the equipment set.
hasdefaultdest(setup)
Given the equipment dictionary, will return a 1 if there is a default destination.
hasoverrideattrib(setup)
Given the equipment dictionary, will return a 1 if there is an override attribute (not currently used).
getdefaultdest(setup)
Given the equipment dictionary, will return the default destination.
getoverrideattrib(setup)
Given the equipment dictionary, will return the override attribute (not currently used).
getequipset(dRes, setup, setname)
Given the reserves dictionary, equipment dictionary, and equipment set name, will return the equipment set.
store(dict)
Given the equipment dictionary, will store the data to a file (used internally).
storedict(fl, key, dict)
Given the file handle, key and dictionary, will store the dictionary to the file (used internally).
storelist(fl, key, list)
Given the file handle, key and list, will store the list to the file (used internally).
storepair(fl, key, elem)
Given the file handle, key and a value, will store the value to the file (used internally).
loadsetup(dRes, filename)
Given the reserves dictionary and a filename, will load and return a dictionary with the stored values (used internally).