예제 #1
0
 public function retrieveInformation($cue)
 {
     $sql = "SELECT * FROM {$this->getTable()} WHERE type = '{$cue}' ORDER BY id ASC LIMIT 1";
     $result = mysql_query($sql);
     $result = mysql_fetch_array($result);
     $this->forgetInformation($result);
     $bcpu = new BasicCognitiveProcessingUnit();
     //$position 	= explode('_', $result['information']);
     $bcpu->addInput($result['information'], $result['type']);
     return $bcpu;
 }
예제 #2
0
 public function processInformation($value)
 {
     $bcpi = new BasicCognitiveProcessingUnit();
     $bcpi->addInput($value['information'], $value['type_sensor']);
     $this->setPerception($bcpi);
 }