All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.harium.suneidesis.knowledge.context.ConversationContext Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
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