Changeset 145 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/structures/ScriptIncident.java
- Timestamp:
- 11/04/2019 08:14:32 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/structures/ScriptIncident.java
r131 r145 46 46 */ 47 47 public String description; 48 48 49 49 /** 50 50 * Length, in seconds, of the incident. … … 72 72 public int eventCount = 0; 73 73 74 SimulationScript script;74 public SimulationScript script; 75 75 76 76 /** … … 135 135 this.setOffset(offset); 136 136 } 137 138 // /** 139 // * Constructor with type and location parameters. 140 // * @param color 141 // * @param number 142 // * @param name 143 // * @param description 144 // * @param script 145 // * @param offset 146 // * @param type 147 // * @param location 148 // */ 149 // public ScriptIncident(Color color, int number, String name, 150 // String description, SimulationScript script, 151 // int offset, String type, String location) 152 // { 153 // this.color = color; 154 // this.number = number; 155 // this.name = name; 156 // this.description = description; 157 // this.script = script; 158 // slices = new TreeMap<Integer, TimeSlice>(); 159 // this.setOffset(offset); 160 // this.location = location; 161 // this.type = type; 162 // insertCadData(offset, new CadData(type,location)); 163 // } 137 164 138 165 /** … … 293 320 } 294 321 295 void insertCadData(long currentEventTime, CadData cad)322 public void insertCadData(long currentEventTime, CadData cad) 296 323 { 297 324 int time = (int) currentEventTime; … … 305 332 slice = slices.get(time); 306 333 slice.cadData = cad; 334 } 335 336 public CadData getCadData(long currentEventTime) 337 { 338 int time = (int) currentEventTime; 339 TimeSlice slice; 340 341 slice = slices.get(time); 342 return slice.cadData; 307 343 } 308 344
Note: See TracChangeset
for help on using the changeset viewer.
