2018-09-05 15:52:38 -06:00
|
|
|
#
|
|
|
|
# Adapter for com.raytheon.uf.common.dataplugin.gfe.db.objects.ParmID
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# SOFTWARE HISTORY
|
|
|
|
#
|
|
|
|
# Date Ticket# Engineer Description
|
|
|
|
# ------------ ---------- ----------- --------------------------
|
|
|
|
# 03/20/13 #1774 randerso Initial Creation.
|
|
|
|
#
|
|
|
|
|
|
|
|
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.db.objects import TimeConstraints
|
|
|
|
|
|
|
|
ClassAdapter = 'com.raytheon.uf.common.dataplugin.gfe.db.objects.TimeConstraints'
|
|
|
|
|
2018-10-14 17:37:08 -06:00
|
|
|
|
2018-09-05 15:52:38 -06:00
|
|
|
def serialize(context, timeConstraints):
|
2018-10-15 13:44:15 -06:00
|
|
|
context.writeI32(timeConstraints.getDuration())
|
|
|
|
context.writeI32(timeConstraints.getRepeatInterval())
|
|
|
|
context.writeI32(timeConstraints.getStartTime())
|
2018-09-05 15:52:38 -06:00
|
|
|
|
2018-10-14 17:37:08 -06:00
|
|
|
|
2018-09-05 15:52:38 -06:00
|
|
|
def deserialize(context):
|
|
|
|
result = TimeConstraints(context.readI32(), context.readI32(), context.readI32())
|
2018-09-06 12:11:36 -06:00
|
|
|
return result
|