(record)
| 34 | } |
| 35 | |
| 36 | configure(record) { |
| 37 | let max = this.interval || -1; |
| 38 | let interval = TimeAgent.updateIntervals["year"]; |
| 39 | for(let attribute of record.attributes) { |
| 40 | let attr = attribute.attribute; |
| 41 | let index = TimeAgent.attributeOrdering.indexOf(attr) |
| 42 | if(index > max) { |
| 43 | max = index; |
| 44 | interval = TimeAgent.updateIntervals[attr]; |
| 45 | } |
| 46 | } |
| 47 | this.interval = interval; |
| 48 | } |
| 49 | |
| 50 | timeActions() { |
| 51 | let time = new Date(); |