Changeset 145 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/structures/ScriptIncident.java


Ignore:
Timestamp:
11/04/2019 08:14:32 AM (6 years ago)
Author:
sdanthin
Message:

Move from Git to Svn (LARGE COMMIT)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/scriptbuilder/structures/ScriptIncident.java

    r131 r145  
    4646     */ 
    4747    public String description; 
    48  
     48     
    4949    /** 
    5050     * Length, in seconds, of the incident. 
     
    7272    public int eventCount = 0; 
    7373 
    74     SimulationScript script; 
     74    public SimulationScript script; 
    7575 
    7676    /** 
     
    135135        this.setOffset(offset); 
    136136    } 
     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//    } 
    137164 
    138165    /** 
     
    293320    } 
    294321 
    295     void insertCadData(long currentEventTime, CadData cad) 
     322    public void insertCadData(long currentEventTime, CadData cad) 
    296323    { 
    297324        int time = (int) currentEventTime; 
     
    305332        slice = slices.get(time); 
    306333        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; 
    307343    } 
    308344 
Note: See TracChangeset for help on using the changeset viewer.