|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsli.dialog.app.calo.browser.BrowserFeedbackServiceImpl
public class BrowserFeedbackServiceImpl
An implementation of the browser feedback service which additionally starts a small HTTP server.
| Constructor Summary | |
|---|---|
BrowserFeedbackServiceImpl()
A default constructor. |
|
| Method Summary | |
|---|---|
boolean |
addFeedback(String meetingId,
String personId,
String action,
String actor,
String property,
String startTime,
String endTime,
String object,
String id,
String oldValue,
String newValue)
|
void |
addFeedbackBean(String meetingId,
String personId,
Document feedbackBean)
Takes a feedback Java bean and converts to OPI format, then adds into the destination model, creating links to any references to objects in the source model. |
static boolean |
addFeedbackBeansToOpi(ArrayList<Feedback> feedbackBeans,
CslitopicaiOpi_1_0 sourceModel,
CslitopicaiOpi_1_0 destModel)
Takes an array of feedback Java beans, converts these to OPI format and adds them into the destination model , and creating links to any references to objects that are in the source model. |
void |
addFeedbacks(String meetingId,
String personId,
ArrayList<Feedback> feedbacks)
Take feedback data that a user has provided on the most recent hypotheses over a particular meeting and save it to the KB -- this will overwrite any feedback data previously saved for that hypothesis and meeting so be sure that you have integrated any prevously existing feedback using a call to getMostRecentFeedbacks(). |
static boolean |
addFeedbackToOpi(ArrayList<Feedback> feedbackBeans,
CslitopicaiOpi_1_0 sourceModel,
CslitopicaiOpi_1_0 destModel)
Takes a feedback, converts to OPI format and adds to destination model, creating links to any references to objects that are in the source model. |
void |
addHypsAsNotes(CslitopicaiOpi_1_0 destModel,
String meetingId,
String persId,
CslitopicaiOpi_1_0 aiOpi)
Takes a set of action item hypotheses and creates an agenda item containing all the hyps as notes entries. |
void |
addLogMessage(String meetingId,
String personId)
Print a log message to the text area. |
static void |
addMainNotesObject(CslitopicaiOpi_1_0 destModel,
CorporaOpi_2_0.NOMOSMeeting meeting)
Creates a main meeting notes object in the destination model for the given meeting. |
boolean |
cacheTranscript(String meetingId)
Retrieve the utterances and sort them by start time |
Document |
convertFeedbackToBean(String action,
String actor,
String propertyType,
String startTime,
String endTime,
String object,
String id,
String oldValue,
String newValue)
Takes a number of String parameters for a feedback action and converts them to a feedback Java bean (an XML Document), for conversion to OPI format. |
void |
createActionItemHyp(String meetingId,
String start,
String end,
String description,
String timeframe,
String owner,
String agree)
Creates an action item in the latest ai hyp model for a particular meeting, setting properties specified by text |
static Document |
extractSmartnotesXmlFromOpi(CslitopicaiOpi_1_0 opi)
Takes an OPI model containing a meeting notes object and converts it to a smartnotes XML document. |
Document |
getBrowserContent(String meetingId,
String personId)
Collects the AI hyps, notes, and any browser feedback, and interprets this into the most recent state of the meeting notes. |
JPanel |
getGui()
Get a Swing JPanel which provides a GUI to this service. |
static CslitopicaiOpi_1_0.NOMOSMeeting |
getMeeting(CslitopicaiOpi_1_0 destModel,
String meetingId)
Get the meeting object with the specified alt ID from the specified model. |
static File |
getMeetingDir(String meetingID)
|
String |
getMeetingList(String personId)
Get an XML list of available meetings for a particular user. |
String |
getParticipantsForMeeting(String meetingId)
Returns a String of XML listing all participants in a meeting |
String |
getParticipantsList()
Get an XML list of available users. |
String |
getTitle()
Get the name of this service as it should appear in the GUI. |
Document |
getTodoContent(String meetingId,
String personId)
Returns a DOM document which contains only the action items which would normally be in the browser content. |
Document |
getTodoContentAsEvents(String meetingId,
String personId,
boolean printToFile)
Returns an XML version of the action items from browser content, for use in Simile timeline display |
String |
getTodoContentAsICal(String meetingId,
String personId)
Returns a String in iCal format which contains the action items from browser content, for use by TOWEL Todo system. |
String |
getTranscript(String meetingId,
long startMillis,
long endMillis)
Get the (1-best) transcript of utterances between (overlapping with) a given start & end time |
boolean |
hasCachedTranscript(String meetingId)
Returns a boolean for whether a transcript of utterances has been cached for a particular meeting |
boolean |
isServiceAlive()
Is the service happy and alive? |
static void |
processEntryFields(Document result,
CslitopicaiOpi_1_0.NOMOSMeeting meeting,
Element itemNode,
CslitopicaiOpi_1_0.MbEntry entry)
Process the entry fields of an OPI entry, creating the XML document nodes for it. |
void |
retrain(String meetingId,
String personId)
Tell any supporting training algorithms to train/retrain given the latest available feedback data for a particular meeting and person. |
boolean |
setTasksAsICal(String personId,
String setterId,
String iCalTasks)
Provide information about the contents of a person's task (to-do) list, for use as implicit supervision |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BrowserFeedbackServiceImpl()
| Method Detail |
|---|
public static boolean addFeedbackBeansToOpi(ArrayList<Feedback> feedbackBeans,
CslitopicaiOpi_1_0 sourceModel,
CslitopicaiOpi_1_0 destModel)
All objects referred in the object or property fields of the feedback beans must be in the source model, or an error will occur.
feedbackBeans - the beans to convertsourceModel - the model containing any referenced entitiesdestModel - the model in which to put the newly converted OPI feedback event objects
public static boolean addFeedbackToOpi(ArrayList<Feedback> feedbackBeans,
CslitopicaiOpi_1_0 sourceModel,
CslitopicaiOpi_1_0 destModel)
All objects referred in the object or property fields of the feedback beans must be in the source model, or an error will occur.
feedbackBeans - the beans to convertsourceModel - the model containing any referenced entitiesdestModel - the model in which to put the newly converted OPI feedback event objects
public static File getMeetingDir(String meetingID)
public static Document extractSmartnotesXmlFromOpi(CslitopicaiOpi_1_0 opi)
If the opi is null, this will return an empty Document. If it is not null, but does not contain any notes objects, it returns a document with a single smartnotes tag.
opi - the opi containing the notes object
public static void processEntryFields(Document result,
CslitopicaiOpi_1_0.NOMOSMeeting meeting,
Element itemNode,
CslitopicaiOpi_1_0.MbEntry entry)
result - the document from which to create the new nodesmeeting - the meeting from which to get the meeting infoitemNode - the item node to which the sub properties should be addedentry - the source OPI entry to get the data from
public void addFeedbacks(String meetingId,
String personId,
ArrayList<Feedback> feedbacks)
FeedbackServiceIn the CALO framework, this will send the latest interpretation of the feedback to IRIS, but in NOMOS it will just add the feedback to the feedback model.
addFeedbacks in interface FeedbackServicemeetingId - the alternate (short) ID of the meetingpersonId - the alternate (short) ID of the person
public void addFeedbackBean(String meetingId,
String personId,
Document feedbackBean)
All objects referred in the object or property fields of the feedback beans must be in the source model, or an error will occur.
addFeedbackBean in interface FeedbackServicefeedbackBean - the beans to convertsourceModel - the model containing any referenced entitiesdestModel - the model in which to put the newly converted OPI feedback event object
public void addHypsAsNotes(CslitopicaiOpi_1_0 destModel,
String meetingId,
String persId,
CslitopicaiOpi_1_0 aiOpi)
destModel - meetingId - persId -
public void addLogMessage(String meetingId,
String personId)
meetingId - personId -
public static void addMainNotesObject(CslitopicaiOpi_1_0 destModel,
CorporaOpi_2_0.NOMOSMeeting meeting)
destModel - the model in which to put the new feedback eventsmeeting - the meeting to base the info on
public Document getBrowserContent(String meetingId,
String personId)
FeedbackServiceIf there are no AI hyps, this will return an almost-empty XML document with only the smartnotes tag with nothing in it. If there is an error during processing, this will return a valid but empty XML document.
getBrowserContent in interface FeedbackServicemeetingId - the alternate (short) ID of the meetingpersonId - the alternate (short) ID of the person
public String getMeetingList(String personId)
getMeetingList in interface FeedbackServicepersonId -
public String getParticipantsList()
getParticipantsList in interface FeedbackServicepersonId -
public String getParticipantsForMeeting(String meetingId)
FeedbackService
getParticipantsForMeeting in interface FeedbackServicemeetingId - the alternate (short) ID of the meeting
public boolean hasCachedTranscript(String meetingId)
FeedbackService
hasCachedTranscript in interface FeedbackServicemeetingId -
public boolean cacheTranscript(String meetingId)
cacheTranscript in interface FeedbackServicemeetingId -
public String getTranscript(String meetingId,
long startMillis,
long endMillis)
getTranscript in interface FeedbackServicemeetingId - start - end -
public static CslitopicaiOpi_1_0.NOMOSMeeting getMeeting(CslitopicaiOpi_1_0 destModel,
String meetingId)
destModel - meetingId -
public String getTitle()
Service
getTitle in interface Service
public Document getTodoContent(String meetingId,
String personId)
getTodoContent in interface FeedbackServicemeetingID - personId -
public String getTodoContentAsICal(String meetingId,
String personId)
FeedbackService
getTodoContentAsICal in interface FeedbackServicepersonId - the alternate (short) ID of the person
public Document getTodoContentAsEvents(String meetingId,
String personId,
boolean printToFile)
FeedbackService
getTodoContentAsEvents in interface FeedbackServicepersonId - the alternate (short) ID of the personprintToFile - flag to write timeline xml contents to file on disk
public void createActionItemHyp(String meetingId,
String start,
String end,
String description,
String timeframe,
String owner,
String agree)
meetingID - start - end - description - timeframe - owner - agree -
public boolean setTasksAsICal(String personId,
String setterId,
String iCalTasks)
FeedbackService
setTasksAsICal in interface FeedbackServicepersonId - the alternate (short) ID of the personsetterId - a string which identifies the agent doing the setting (e.g. "TOWEL")iCalTasks - an iCal-format String
public JPanel getGui()
Service
getGui in interface Servicepublic boolean isServiceAlive()
Service
isServiceAlive in interface Service
public void retrain(String meetingId,
String personId)
FeedbackService
retrain in interface FeedbackServicemeetingId - the alternate (short) ID of the meetingpersonId - the alternate (short) ID of the person
public boolean addFeedback(String meetingId,
String personId,
String action,
String actor,
String property,
String startTime,
String endTime,
String object,
String id,
String oldValue,
String newValue)
public Document convertFeedbackToBean(String action,
String actor,
String propertyType,
String startTime,
String endTime,
String object,
String id,
String oldValue,
String newValue)
convertFeedbackToBean in interface FeedbackServiceaction - the type feedback action either an ObjectAction: CreateAction, ConfirmAction, DeleteAction,
EquivalenceAction, NotMineAction or, a PropertyValueAction: PropertyValueAddAction,
PropertyValueRemoveAction, PropertyValueChangeActionactor - the individual performing the feedbackpropertyType - for feedback on properties, the type of object property for which feedback is being given one of:
NOMOS-description, CsliAITimeframe, CsliAIOwnerDescription, CsliAIOwnerIdstartTime - start time of feedback in milliseconds as stringendTime - end time of feedback in milliseconds as stringobject - the opiId for the note on which feedback is being givenid - the opiId for the note on which feedback is being givenoldValue - for PropertyValueChangeAction or PropertyValueRemoveAction, the old value of the propertynewValue - for PropertyValueChangeAction or PropertyValueAddAction, the new value of the property
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||