leaf-analysis/src/simulation/BIModelSpecBuilder.java
/** Assigned the high-level items for the model.
     * @param modelSpec
     * @param frontendModel
     * Note: Model constraints are assigned after intentions are established.
     */
Assigned the high-level items for the model.
@param modelSpec
@param frontendModel
Note: Model constraints are assigned after intentions are established.
Assigned the high - level items for the model . @param modelSpec @param frontendModel Note : Model constraints are assigned after intentions are established .
private static void readOverallGraphParameters(ModelSpec modelSpec, IGraph frontendModel) {
    	try {	
			if(frontendModel.getMaxAbsTime() != null){
				modelSpec.setMaxTime(Integer.parseInt(frontendModel.getMaxAbsTime()));
			}
			if(frontendModel.getAbsTimePtsArr() != null)
				modelSpec.setAbsoluteTimePoints(frontendModel.getAbsTimePtsArr());
			else
				modelSpec.setAbsoluteTimePoints(new int[0]);
			if (Main.DEBUG) System.out.println("Read MaxTime & Absolute TPs");
    	} catch (Exception e) {
    		throw new RuntimeException(e.getMessage());
    	}  
    }
private static void readOverallGraphParameters ( ModelSpec modelSpec , IGraph frontendModel ) { try { if ( frontendModel . getMaxAbsTime ( ) != null ) { modelSpec . setMaxTime ( Integer . parseInt ( frontendModel . getMaxAbsTime ( ) ) ) ; } if ( frontendModel . getAbsTimePtsArr ( ) != null ) modelSpec . setAbsoluteTimePoints ( frontendModel . getAbsTimePtsArr ( ) ) ; else modelSpec . setAbsoluteTimePoints ( new int [ 0 ] ) ; if ( Main . DEBUG ) System . out . println ( "Read MaxTime & Absolute TPs" ) ; } catch ( Exception e ) { throw new RuntimeException ( e . getMessage ( ) ) ; } }
Assigned the high-level items for the model.
Assigned the high - level items for the model .
//Max Absolute Time