예제 #1
0
 /**
  * Creates a DataMap from the datamap information
  *
  * @return a datamap based on the information in this object, null if not a datamap object type
  */
 public DataMap createDataMap(SoarWorkingMemoryModel swmm) {
   DataMap dm;
   if (isDataMapObject()) {
     if (siv.getValue() != 0) {
       dm = new DataMap(swmm, siv, dataMapName);
     } else {
       dm = new DataMap(swmm, swmm.getTopstate(), dataMapName);
     }
     return dm;
   } else return null;
 }
예제 #2
0
 public int getDataMapId() {
   if (isDataMapObject()) return siv.getValue();
   else return -1;
 }