1 package org.jicengine; 2 import java.util.Map ; 3 import java.io.File ; 4 import org.jicengine.io.Resource; 5 6 30 31 public class Instructions { 32 33 private Resource jicFile; 34 private Map parameters; 35 36 40 public Instructions(Resource jicFile) 41 { 42 this(jicFile, null); 43 } 44 45 49 public Instructions(Resource jicFile, Map parameters) 50 { 51 this.jicFile = jicFile; 52 53 if( jicFile == null ){ 54 throw new IllegalArgumentException ("JIC file null, can't create Instructions."); 55 } 56 57 if( parameters != null ){ 58 this.parameters = java.util.Collections.unmodifiableMap(parameters); 60 } 61 else { 62 this.parameters = java.util.Collections.EMPTY_MAP; 63 } 64 } 65 66 public Resource getFile() 67 { 68 return this.jicFile; 69 } 70 71 74 public Map getParameters() 75 { 76 return this.parameters; 77 } 78 } 79 | Popular Tags |