com.harium.suneidesis.knowledge.context.ConversationContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Project to represent knowledge
package com.harium.suneidesis.knowledge.context;
import com.harium.suneidesis.knowledge.concept.Concept;
import com.harium.suneidesis.knowledge.space.SpaceConcept;
import com.harium.suneidesis.knowledge.storage.MemoryStorage;
import com.harium.suneidesis.knowledge.storage.Storage;
import com.harium.suneidesis.knowledge.time.TemporalConcept;
import java.util.Collection;
public class ConversationContext extends Context {
private Concept subject = Concept.UNKNOWN;
private Storage participants = new MemoryStorage<>();
public ConversationContext(TemporalConcept when) {
super(when);
}
public ConversationContext(TemporalConcept when, SpaceConcept where) {
super(when, where);
}
public ConversationContext(Storage participants) {
this.participants = participants;
}
public Concept getSubject() {
return subject;
}
public void setSubject(Concept subject) {
this.subject = subject;
}
public Collection getParticipantsAsList() {
return participants.getAll();
}
public Storage getParticipants() {
return participants;
}
public void setParticipants(Storage participants) {
this.participants = participants;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy