# Travis Scrimshaw
# functions.py - Module containing all useful functions for the various componets
#                Also contains general purpose constants

import math as M
import random as R

def Pos(num):
	if num <= 0:
		return 0
	else:
		return num
# Pos()

def Rand():
	R.seed()
	return R.random()
# Rand()

def DefaultValues():
	return 2, 1.0, 10.0, 1.0, 5.0, 0.0, 0.0, 0.0, 4, 0.0, 0.0, 0.0, 10.0, .5, 0.0, .8, 0.0, .3, 0.0, 0.9, 0.0, 1.0, 0.0, 0.0, 0.0, .5, 0.0, 5.0, 0.0, 0.01
#	numPerches, size, orbitSize, food, maxFood, X, Y, Z, numBirds, iX, iY, iZ, r, ts, rts, h, rh, fp,
#	rfp, e, re, si, rsi, a, ra, s, rs, ms, rms, timestep = For the birds and feeders
# DefaultValues()

# Recharging function for the feeder
def feeder(timestep):
	return timestep
# feeder()

def DefaultParams():
	return True, "infinite"
#	dispPath, feederType
# DefaultParams()

NULL = -1

true = 1

false = 1
