import epics
PV = epics.PV

from classMeasurement import *
from classState import *
from classCommonPV import *
class classMatrices(classMeasurement,classState):
	def __init__( self,commonPVstring, fmatrixPVstring, gmatrixPVstring, polyPVstring):
		self.pvstring = commonPVstring.pvstring
		self.fmatrixPVstring = fmatrixPVstring
		self.gmatrixPVstring = gmatrixPVstring
		self.polyPVstring = polyPVstring
		self.fmatrix = []
		self.gmatrix = []
		self.poly = []
	def fmatrixget(self):
		self.fmatrix = PV(self.pvstring + self.fmatrixPVstring).get()
		return self.fmatrix
	def gmatrixget(self):
		self.gmatrix = PV(self.pvstring + self.gmatrixPVstring).get()
		return self.gmatrix
	def fPolyget(self):
		self.poly = PV(self.pvstring + self.polyPVstring).get()
		return self.poly		
