Class SessionImpl
java.lang.Object
ca.phon.session.impl.SessionImpl
- All Implemented Interfaces:
SessionSPI
Default implementation of a session.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddParticipant(int idx, Participant participant) Add participant at given indexvoidaddParticipant(Participant participant) Add a new participantvoidAdd a new transcribervoidaddUserTier(int idx, TierDescription tierDescription) voidaddUserTier(TierDescription tierDescription) Add a user tiervoiddeleteTierAlignmentRules(String tier1, String tier2) Get list of blind tier namesGet the corpusgetDate()Get the transcript dateGet the list of (unmodifiable) languages (if any) for the sessionGet/Set the media file locationGet the metadatagetName()Get the transcript namegetParticipant(int idx) Get the participant at the given indexintGet the number of participantsintgetParticipantIndex(Participant participant) Get the index of the given participantgetSystemTierParameters(SystemTierType systemTier) Get tier parameters for system tiergetTierAlignmentRules(String tier1, String tier2) getTiers()Get list of all tiers including system tiersGet the tier viewGet the IntervalTiers for this sessiongetTranscriber(int i) Get theith transcriber.getTranscriber(String username) Get transcriber for the specified usernameintGet the number of transcribersGet the transcript object which is the collection of all comments, gems and records.getUserTier(int idx) Get user tier for the specified index.intNumber of user-defined tiers for this sessionvoidputSystemTierParam(SystemTierType systemTier, String key, String value) Set tier parameter for system tiervoidputTierAlignmentRules(TierAlignmentRules tierAlignmentRules) voidremoveParticipant(int idx) Remove a participantvoidremoveParticipant(Participant participant) Remove a participant.voidremoveTranscriber(int i) Remove theith transcribervoidRemove a transcribervoidremoveTranscriber(String username) removeUserTier(int idx) Remove user tierremoveUserTier(TierDescription tierDescription) voidsetBlindTiers(List<String> blindTiers) Set list of blind tier namesvoidSet the corpusvoidGet the transcript datevoidsetLanguages(List<Language> languages) Set the list of languages for the sessionvoidsetMediaLocation(String mediaLocation) Media locationvoidSet the transcript namevoidsetTierView(List<TierViewItem> view) Set tier view
-
Method Details
-
getCorpus
Description copied from interface:SessionSPIGet the corpus- Specified by:
getCorpusin interfaceSessionSPI
-
getName
Description copied from interface:SessionSPIGet the transcript name- Specified by:
getNamein interfaceSessionSPI
-
getDate
Description copied from interface:SessionSPIGet the transcript date- Specified by:
getDatein interfaceSessionSPI
-
getLanguages
Description copied from interface:SessionSPIGet the list of (unmodifiable) languages (if any) for the session- Specified by:
getLanguagesin interfaceSessionSPI
-
setLanguages
Description copied from interface:SessionSPISet the list of languages for the session- Specified by:
setLanguagesin interfaceSessionSPI- Parameters:
languages-
-
getMediaLocation
Description copied from interface:SessionSPIGet/Set the media file location- Specified by:
getMediaLocationin interfaceSessionSPI
-
getTierView
Description copied from interface:SessionSPIGet the tier view- Specified by:
getTierViewin interfaceSessionSPI- Returns:
- tier view (unmodifiable)
-
getTranscriber
Description copied from interface:SessionSPIGet transcriber for the specified username- Specified by:
getTranscriberin interfaceSessionSPI- Parameters:
username-- Returns:
-
getTranscriber
Description copied from interface:SessionSPIGet theith transcriber.- Specified by:
getTranscriberin interfaceSessionSPI- Parameters:
i-- Returns:
-
removeTranscriber
public void removeTranscriber(int i) Description copied from interface:SessionSPIRemove theith transcriber- Specified by:
removeTranscriberin interfaceSessionSPI- Parameters:
i-
-
getMetadata
Description copied from interface:SessionSPIGet the metadata- Specified by:
getMetadatain interfaceSessionSPI- Returns:
- Metadata
-
getTranscript
Description copied from interface:SessionSPIGet the transcript object which is the collection of all comments, gems and records.- Specified by:
getTranscriptin interfaceSessionSPI- Returns:
- transcript object
-
getParticipantCount
public int getParticipantCount()Description copied from interface:SessionSPIGet the number of participants- Specified by:
getParticipantCountin interfaceSessionSPI- Returns:
- the number of participants
-
addParticipant
Description copied from interface:SessionSPIAdd a new participant- Specified by:
addParticipantin interfaceSessionSPI- Parameters:
participant-
-
addParticipant
Description copied from interface:SessionSPIAdd participant at given index- Specified by:
addParticipantin interfaceSessionSPI- Parameters:
idx-participant-
-
getParticipant
Description copied from interface:SessionSPIGet the participant at the given index- Specified by:
getParticipantin interfaceSessionSPI- Parameters:
idx-- Returns:
- the specified participant
-
getParticipantIndex
Description copied from interface:SessionSPIGet the index of the given participant- Specified by:
getParticipantIndexin interfaceSessionSPI- Returns:
- index of participant or -1 if not found
-
setCorpus
Description copied from interface:SessionSPISet the corpus- Specified by:
setCorpusin interfaceSessionSPI
-
setName
Description copied from interface:SessionSPISet the transcript name- Specified by:
setNamein interfaceSessionSPI
-
setDate
Description copied from interface:SessionSPIGet the transcript date- Specified by:
setDatein interfaceSessionSPI
-
setMediaLocation
Description copied from interface:SessionSPIMedia location- Specified by:
setMediaLocationin interfaceSessionSPI
-
setTierView
Description copied from interface:SessionSPISet tier view- Specified by:
setTierViewin interfaceSessionSPI- Parameters:
view-
-
getTiers
Description copied from interface:SessionSPIGet list of all tiers including system tiers- Specified by:
getTiersin interfaceSessionSPI- Returns:
- list of all tiers including system tiers and user defined tiers
-
getSystemTierParameters
Description copied from interface:SessionSPIGet tier parameters for system tier- Specified by:
getSystemTierParametersin interfaceSessionSPI- Parameters:
systemTier-- Returns:
- unmodifiable tier params for given system tier
-
putSystemTierParam
Description copied from interface:SessionSPISet tier parameter for system tier- Specified by:
putSystemTierParamin interfaceSessionSPI- Parameters:
systemTier-key-value-
-
addTranscriber
Description copied from interface:SessionSPIAdd a new transcriber- Specified by:
addTranscriberin interfaceSessionSPI
-
removeTranscriber
Description copied from interface:SessionSPIRemove a transcriber- Specified by:
removeTranscriberin interfaceSessionSPI
-
removeTranscriber
- Specified by:
removeTranscriberin interfaceSessionSPI
-
removeParticipant
Description copied from interface:SessionSPIRemove a participant.- Specified by:
removeParticipantin interfaceSessionSPI- Parameters:
participant-
-
removeParticipant
public void removeParticipant(int idx) Description copied from interface:SessionSPIRemove a participant- Specified by:
removeParticipantin interfaceSessionSPI- Parameters:
idx-
-
getUserTierCount
public int getUserTierCount()Description copied from interface:SessionSPINumber of user-defined tiers for this session- Specified by:
getUserTierCountin interfaceSessionSPI
-
getUserTier
Description copied from interface:SessionSPIGet user tier for the specified index.- Specified by:
getUserTierin interfaceSessionSPI- Parameters:
idx-- Returns:
- tier description
-
removeUserTier
Description copied from interface:SessionSPIRemove user tier- Specified by:
removeUserTierin interfaceSessionSPI- Parameters:
idx-
-
removeUserTier
- Specified by:
removeUserTierin interfaceSessionSPI
-
addUserTier
Description copied from interface:SessionSPIAdd a user tier- Specified by:
addUserTierin interfaceSessionSPI
-
addUserTier
- Specified by:
addUserTierin interfaceSessionSPI
-
getTierAlignmentRules
- Specified by:
getTierAlignmentRulesin interfaceSessionSPI
-
getTierAlignmentRules
- Specified by:
getTierAlignmentRulesin interfaceSessionSPI
-
putTierAlignmentRules
- Specified by:
putTierAlignmentRulesin interfaceSessionSPI
-
deleteTierAlignmentRules
- Specified by:
deleteTierAlignmentRulesin interfaceSessionSPI
-
getBlindTiers
Description copied from interface:SessionSPIGet list of blind tier names- Specified by:
getBlindTiersin interfaceSessionSPI- Returns:
- blind tier names
-
setBlindTiers
Description copied from interface:SessionSPISet list of blind tier names- Specified by:
setBlindTiersin interfaceSessionSPI
-
getTranscriberCount
public int getTranscriberCount()Description copied from interface:SessionSPIGet the number of transcribers- Specified by:
getTranscriberCountin interfaceSessionSPI
-
getTimeline
Get the IntervalTiers for this session- Specified by:
getTimelinein interfaceSessionSPI- Returns:
- intervalTiers
-