-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathfleet_request_2.py
More file actions
35 lines (25 loc) · 789 Bytes
/
fleet_request_2.py
File metadata and controls
35 lines (25 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# -*- coding: utf-8 -*- {{{
#
# Your license here
# }}}
from datetime import datetime, timedelta
class FleetRequest:
"""
This class describes input fields required by fleets
"""
def __init__(self, ts = datetime.utcnow(), sim_step = timedelta(hours = 1), p= 0, q= 0, steps = 1, forecast = 0):
"""
Constructor
"""
# Timestamp in simulation loop: datetime
self.StartTime = ts
# Simulation time step: timedelta object
self.Timestep = sim_step
# Real power request
self.P_request = 0#p
# Reactive power request
self.Q_request = q
#Number of steps in simulation
self.Steps = steps
#Requesting a forecast Y/N
self.Forecast = forecast