blob: 61a427c04178e07328b51a466482f2d275e66ebf [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2007 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.ote.message.data;
import org.eclipse.osee.ote.messaging.dds.service.Key;
import org.eclipse.osee.ote.messaging.dds.service.TypeSupport;
/**
* @author Andrew M. Finkbeiner
*/
public class DDSTypeSupport extends TypeSupport {
private final Key key;
private final String readerName;
private final String writerName;
private final int size;
public DDSTypeSupport(Key key, String readerName, String writerName, int size) {
this.key = key;
this.readerName = readerName;
this.writerName = writerName;
this.size = size;
}
@Override
protected Key getKey() {
return key;
}
@Override
protected String getReaderName() {
return this.readerName;
}
@Override
protected int getTypeDataSize() {
return this.size;
}
@Override
protected String getWriterName() {
return this.writerName;
}
}