Spot.py 589 Bytes
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
class Spot(object):
def __init__(self,
id = "",
instanceType = "",
chargingDate = "",
bidPrice = "",
paidSoFar = "",
instanceTableID = "",
tiramola_InstanceType = ""):
self.id = id
self.instanceType = instanceType
self.chargingDate = chargingDate
self.bidPrice = bidPrice
self.paidSoFar = paidSoFar
self.instanceTableID = instanceTableID
self.tiramola_InstanceType = tiramola_InstanceType

def __str__(self):
return str(self.id) + " " + str(self.instanceType) + " " + str(self.chargingDate) + " " + str(self.bidPrice) + " " + str(self.paidSoFar)