// Path: dkpro-statistics-agreement/src/main/java/org/dkpro/statistics/agreement/IAnnotationUnit.java
// public interface IAnnotationUnit
//     extends Serializable
// {
//     /**
//      * Returns the index of the rater who coded this unit (in case of a coding study) or defined the
//      * boundaries of this unit (in case of a unitizing study). The first rater has index 0.
//      */
//     public int getRaterIdx();
// 
//     /**
//      * Returns the category assigned to this unit by one of the raters. The category might be null
//      * if, and only if, the unit represents a missing value (in case of a coding study) or a gap (in
//      * case of a unitizing study).
//      */
//     public Object getCategory();
// }


import java.util.ArrayList;
import java.util.List;
import org.dkpro.statistics.agreement.IAnnotationUnit;
/*
 * Copyright 2014
 * Ubiquitous Knowledge Processing (UKP) Lab
 * Technische Universität Darmstadt
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.dkpro.statistics.agreement.coding;



/**
 * Default implementation of {@link ICodingAnnotationItem} holding the set of annotation units for
 * this item (i.e., the categories assigned to this item by all raters). When using the default
 * implementation, it is recommended to use {@link CodingAnnotationStudy#addItem(Object...)} instead
 * of instantiating this type.
 * 
 * @see CodingAnnotationStudy
 * @see ICodingAnnotationItem
 * @author Christian M. Meyer
 */
public class CodingAnnotationItem
    implements ICodingAnnotationItem
{
    private static final long serialVersionUID = 3447650373912260846L;
    
// Path: dkpro-statistics-agreement/src/main/java/org/dkpro/statistics/agreement/IAnnotationUnit.java
// public interface IAnnotationUnit
//     extends Serializable
// {
//     /**
//      * Returns the index of the rater who coded this unit (in case of a coding study) or defined the
//      * boundaries of this unit (in case of a unitizing study). The first rater has index 0.
//      */
//     public int getRaterIdx();
// 
//     /**
//      * Returns the category assigned to this unit by one of the raters. The category might be null
//      * if, and only if, the unit represents a missing value (in case of a coding study) or a gap (in
//      * case of a unitizing study).
//      */
//     public Object getCategory();
// }


// Path: dkpro-statistics-agreement/src/main/java/org/dkpro/statistics/agreement/coding/CodingAnnotationItem.java
import java.util.ArrayList;
import java.util.List;
import org.dkpro.statistics.agreement.IAnnotationUnit;

/*
 * Copyright 2014
 * Ubiquitous Knowledge Processing (UKP) Lab
 * Technische Universität Darmstadt
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.dkpro.statistics.agreement.coding;



/**
 * Default implementation of {@link ICodingAnnotationItem} holding the set of annotation units for
 * this item (i.e., the categories assigned to this item by all raters). When using the default
 * implementation, it is recommended to use {@link CodingAnnotationStudy#addItem(Object...)} instead
 * of instantiating this type.
 * 
 * @see CodingAnnotationStudy
 * @see ICodingAnnotationItem
 * @author Christian M. Meyer
 */
public class CodingAnnotationItem
    implements ICodingAnnotationItem
{
    private static final long serialVersionUID = 3447650373912260846L;
    
    protected List<IAnnotationUnit> units;