@Test public void testCanAddALongTermIdentifier() throws Exception { final long lti = smem.smem_lti_add_id('Z', 99); assertEquals(1, lti); }
long smem_lti_add_id(char name_letter, long name_number) throws SQLException { long return_val = 0; db.lti_add.setLong(1, (long) (name_letter)); db.lti_add.setLong(2, (long) (name_number)); db.lti_add.setLong(3, 0); db.lti_add.setDouble(4, 0); db.lti_add.setLong(5, 0); db.lti_add.setLong(6, 0); db.lti_add.setLong(7, 0); return_val = JdbcTools.insertAndGetRowId(db.lti_add); stats.nodes.set(stats.nodes.get() + 1); return return_val; }
DefaultSemanticMemory implements SemanticMemory { long smem_lti_add_id(char name_letter, long name_number) throws SQLException { long return_val = 0; db.lti_add.setLong(1, (long) (name_letter)); db.lti_add.setLong(2, (long) (name_number)); db.lti_add.setLong(3, 0); db.lti_add.setDouble(4, 0); db.lti_add.setLong(5, 0); db.lti_add.setLong(6, 0); db.lti_add.setLong(7, 0); return_val = JdbcTools.insertAndGetRowId(db.lti_add); stats.nodes.set(stats.nodes.get() + 1); return return_val; } }
DefaultSemanticMemory implements SemanticMemory { long smem_lti_add_id(char name_letter, long name_number) throws SQLException { long return_val = 0; db.lti_add.setLong(1, (long) (name_letter)); db.lti_add.setLong(2, (long) (name_number)); db.lti_add.setLong(3, 0); db.lti_add.setDouble(4, 0); db.lti_add.setLong(5, 0); db.lti_add.setLong(6, 0); db.lti_add.setLong(7, 0); return_val = JdbcTools.insertAndGetRowId(db.lti_add); stats.nodes.set(stats.nodes.get() + 1); return return_val; } DefaultSemanticMemory(Adaptable context);  DefaultSemanticMemory(Adaptable context, SemanticMemoryDatabase db); }
DefaultSemanticMemory implements SemanticMemory { long smem_lti_add_id(char name_letter, long name_number) throws SQLException { long return_val = 0; db.lti_add.setLong(1, (long) (name_letter)); db.lti_add.setLong(2, (long) (name_number)); db.lti_add.setLong(3, 0); db.lti_add.setDouble(4, 0); db.lti_add.setLong(5, 0); db.lti_add.setLong(6, 0); db.lti_add.setLong(7, 0); return_val = JdbcTools.insertAndGetRowId(db.lti_add); stats.nodes.set(stats.nodes.get() + 1); return return_val; } DefaultSemanticMemory(Adaptable context);  DefaultSemanticMemory(Adaptable context, SemanticMemoryDatabase db); BasicWeightedCue getLastCue(); void initialize(); @Override void resetStatistics(); @Override SemanticMemoryStatistics getStatistics(); @Override void initializeNewContext(WorkingMemory wm, IdentifierImpl id); @Override boolean smem_enabled(); double smem_lti_calc_base(long lti, long time_now); double smem_lti_calc_base(long lti, long time_now, long n); double smem_lti_calc_base(long lti, long time_now, long n, long activations_first); static boolean smem_valid_production(Condition lhs_top, Action rhs_top); @Override long smem_lti_get_id(char name_letter, long name_number); IdentifierImpl smem_lti_soar_make(/* smem_lti_id */long lti, char name_letter, long name_number, /* goal_stack_level */int level); @Override void smem_reset_id_counters(); @Override void smem_reset(IdentifierImpl state); @Override void smem_attach(); @Override void smem_close(); @Override void smem_go(boolean store_only); @Override boolean isMirroringEnabled(); @Override Set<IdentifierImpl> smem_changed_ids(); @Override boolean smem_ignore_changes(); }
DefaultSemanticMemory implements SemanticMemory { long smem_lti_add_id(char name_letter, long name_number) throws SQLException { long return_val = 0; db.lti_add.setLong(1, (long) (name_letter)); db.lti_add.setLong(2, (long) (name_number)); db.lti_add.setLong(3, 0); db.lti_add.setDouble(4, 0); db.lti_add.setLong(5, 0); db.lti_add.setLong(6, 0); db.lti_add.setLong(7, 0); return_val = JdbcTools.insertAndGetRowId(db.lti_add); stats.nodes.set(stats.nodes.get() + 1); return return_val; } DefaultSemanticMemory(Adaptable context);  DefaultSemanticMemory(Adaptable context, SemanticMemoryDatabase db); BasicWeightedCue getLastCue(); void initialize(); @Override void resetStatistics(); @Override SemanticMemoryStatistics getStatistics(); @Override void initializeNewContext(WorkingMemory wm, IdentifierImpl id); @Override boolean smem_enabled(); double smem_lti_calc_base(long lti, long time_now); double smem_lti_calc_base(long lti, long time_now, long n); double smem_lti_calc_base(long lti, long time_now, long n, long activations_first); static boolean smem_valid_production(Condition lhs_top, Action rhs_top); @Override long smem_lti_get_id(char name_letter, long name_number); IdentifierImpl smem_lti_soar_make(/* smem_lti_id */long lti, char name_letter, long name_number, /* goal_stack_level */int level); @Override void smem_reset_id_counters(); @Override void smem_reset(IdentifierImpl state); @Override void smem_attach(); @Override void smem_close(); @Override void smem_go(boolean store_only); @Override boolean isMirroringEnabled(); @Override Set<IdentifierImpl> smem_changed_ids(); @Override boolean smem_ignore_changes();  }