Package ca.phon.session
Class Record
java.lang.Object
ca.phon.extensions.ExtendableObject
ca.phon.session.Record
- All Implemented Interfaces:
IExtendable
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addComment
(Comment comment) addGroup()
Add a new group to the end of the record dataaddGroup
(int idx) Add a new group at the specified index.getComment
(int idx) getGroup
(int idx) Get the group at the specified indexgetNotes()
int
Tier<?>
<T> Tier<T>
getTiersOfType
(Class<T> type) Class<?>
getTierType
(String name) getUuid()
boolean
boolean
int
mergeGroups
(int grp1, int grp2) Merge the two specified gropus.int
Get the number of aligned groups in the record.void
void
removeComment
(int idx) void
removeComment
(Comment comment) void
removeGroup
(int idx) Delete the group at the specified index.void
removeTier
(String name) void
setExcludeFromSearches
(boolean excluded) void
setIPAActual
(Tier<IPATranscript> ipa) void
setIPATarget
(Tier<IPATranscript> ipa) void
setNotes
(Tier<TierString> notes) void
setOrthography
(Tier<Orthography> ortho) void
setPhoneAlignment
(Tier<PhoneMap> phoneAlignment) void
setSegment
(Tier<MediaSegment> media) void
setSpeaker
(Participant participant) void
splitGroup
(int grp, int wrd) Split groups based on group and aligned word index.Methods inherited from class ca.phon.extensions.ExtendableObject
getExtension, getExtensions, putExtension, removeExtension
-
Method Details
-
getUuid
-
setUuid
-
getSpeaker
-
setSpeaker
-
getSegment
-
setSegment
-
isExcludeFromSearches
public boolean isExcludeFromSearches() -
setExcludeFromSearches
public void setExcludeFromSearches(boolean excluded) -
getOrthography
-
setOrthography
-
getIPATarget
-
setIPATarget
-
getIPAActual
-
setIPAActual
-
getPhoneAlignment
-
setPhoneAlignment
-
getNotes
-
setNotes
-
getTierType
-
getTier
-
getTier
-
getExtraTierNames
-
getTiersOfType
-
hasTier
-
putTier
-
removeTier
-
getNumberOfComments
public int getNumberOfComments() -
getComment
-
addComment
-
removeComment
-
removeComment
public void removeComment(int idx) -
numberOfGroups
public int numberOfGroups()Get the number of aligned groups in the record. The number of groups for a record is determined by the number of groups in the orthoraphy tier.- Returns:
- number of groups
-
getGroup
Get the group at the specified index- Parameters:
idx
-- Returns:
- the specified group
-
removeGroup
public void removeGroup(int idx) Delete the group at the specified index. This will affect all grouped tiers.- Parameters:
idx
- the group to remove
-
addGroup
Add a new group to the end of the record data- Returns:
- the new group
-
addGroup
Add a new group at the specified index. This method will add a new group value to each grouped tier.- Parameters:
idx
-- Returns:
- the new group
- Throws:
ArrayIndexOutOfBoundsException
- if idx is out of bounds
-
mergeGroups
public int mergeGroups(int grp1, int grp2) Merge the two specified gropus.- Parameters:
grp1
-grp2
-- Returns:
- the word index of grp1 where the merge occured.
- Throws:
IllegalArgumentException
- ifgrp1 or
grp2
are not adjacent groups orgrp2 invalid input: '<'= grp1
ArrayIndexOutOfBoundsException
- if eithergrp1
orgrp2
is out of bounds
-
splitGroup
Split groups based on group and aligned word index.- Parameters:
grp
-wrd
-- Returns:
- the new group created by the split
- Throws:
ArrayIndexOutOfBoundsException
- if eithergrp
orwrd
are out of bounds
-