Database Models Definitions¶
Models for the website database.
Jin Cheng, 2/12/16
-
class
server_side.controls.models.
Calorimeter
(*args, **kwargs)[source]¶ Bases:
django.db.models.base.Model
A database representation of a calorimeter. Saves connection times on server to determine whether device is offline, and whether user at browser can access / control the device.
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
Calorimeter.
K_d
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Calorimeter.
K_i
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Calorimeter.
K_p
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
Calorimeter.
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
Calorimeter.
access_code
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Calorimeter.
active_loop_interval
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Calorimeter.
creation_time
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Calorimeter.
current_ref_temp
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Calorimeter.
current_sample_temp
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Calorimeter.
get_next_by_creation_time
(*moreargs, **morekwargs)¶
-
Calorimeter.
get_next_by_last_changed_time
(*moreargs, **morekwargs)¶
-
Calorimeter.
get_next_by_last_comm_time
(*moreargs, **morekwargs)¶
-
Calorimeter.
get_previous_by_creation_time
(*moreargs, **morekwargs)¶
-
Calorimeter.
get_previous_by_last_changed_time
(*moreargs, **morekwargs)¶
-
Calorimeter.
get_previous_by_last_comm_time
(*moreargs, **morekwargs)¶
-
Calorimeter.
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Calorimeter.
idle_loop_interval
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Calorimeter.
last_changed_time
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Calorimeter.
last_comm_time
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Calorimeter.
max_ramp_rate
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Calorimeter.
name
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Calorimeter.
objects
= <django.db.models.manager.Manager object>¶
-
Calorimeter.
run_set
¶ Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
Calorimeter.
serial
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Calorimeter.
stop_flag
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Calorimeter.
temp_tolerance_duration
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Calorimeter.
temp_tolerance_range
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Calorimeter.
web_api_min_upload_length
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
-
class
server_side.controls.models.
DataPoint
(*args, **kwargs)[source]¶ Bases:
django.db.models.base.Model
A database representation of data measurements associated with a single point in time. When a measurement is made on device, it is streamed to the server to be saved here.
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
DataPoint.
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
DataPoint.
get_next_by_measured_at
(*moreargs, **morekwargs)¶
-
DataPoint.
get_next_by_received_at
(*moreargs, **morekwargs)¶
-
DataPoint.
get_previous_by_measured_at
(*moreargs, **morekwargs)¶
-
DataPoint.
get_previous_by_received_at
(*moreargs, **morekwargs)¶
-
DataPoint.
heat_ref
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
DataPoint.
heat_sample
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
DataPoint.
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
DataPoint.
measured_at
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
DataPoint.
objects
= <django.db.models.manager.Manager object>¶
-
DataPoint.
received_at
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
DataPoint.
run
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
child.parent
is aForwardManyToOneDescriptor
instance.
-
DataPoint.
run_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
DataPoint.
temp_ref
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
DataPoint.
temp_sample
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
-
class
server_side.controls.models.
Run
(*args, **kwargs)[source]¶ Bases:
django.db.models.base.Model
A database representation of a single DSC run. As device streams temperature and heat flow data to the server, this data is saved on database independent of the PID controller on device.
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
Run.
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
Run.
calorimeter
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
child.parent
is aForwardManyToOneDescriptor
instance.
-
Run.
calorimeter_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Run.
creation_time
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Run.
datapoint_set
¶ Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
Run.
email
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Run.
finish_time
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Run.
get_next_by_creation_time
(*moreargs, **morekwargs)¶
-
Run.
get_previous_by_creation_time
(*moreargs, **morekwargs)¶
-
Run.
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Run.
is_finished
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Run.
is_ready
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Run.
is_running
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Run.
name
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Run.
objects
= <django.db.models.manager.Manager object>¶
-
Run.
ramp_rate
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Run.
stabilized_at_start
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Run.
start_temp
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Run.
start_time
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Run.
target_temp
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception