00001 package com.riverlab.robotmanager.robot; 00002 00003 import java.util.ArrayList; 00004 00005 import com.riverlab.robotmanager.voice_recognition.NewPhrasesMessage; 00006 import com.riverlab.robotmanager.voice_recognition.Vocabulary; 00007 00008 public class Robot 00009 { 00010 private String name; 00011 private String info; 00012 private Vocabulary vocab; 00013 00014 public Robot() 00015 { 00016 //No data 00017 } 00018 00019 public Robot(String name) 00020 { 00021 this.name = name; 00022 } 00023 00024 public Robot (String name, String info, Vocabulary vocab) 00025 { 00026 this.name = name; 00027 this.info = info; 00028 this.vocab = vocab; 00029 } 00030 00031 public String getName() 00032 { 00033 return name; 00034 } 00035 00036 public String getInfo() 00037 { 00038 return info; 00039 } 00040 00041 public void setName(String newName) 00042 { 00043 name = newName; 00044 } 00045 00046 public void setInfo(String newInfo) 00047 { 00048 info = newInfo; 00049 } 00050 00051 public void setVocabulary(Vocabulary vocab) 00052 { 00053 this.vocab = vocab; 00054 } 00055 00056 public NewPhrasesMessage getNextPhrases(ArrayList<String> previous) 00057 { 00058 return vocab.getNextPhrases(previous); 00059 } 00060 }