
jais.messages.binaryaddressed.IMO289AreaNotice Maven / Gradle / Ivy
/*
* Copyright 2016-2019 Jonathan Machen .
*
* 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 jais.messages.binaryaddressed;
import jais.AISSentence;
import jais.messages.BinaryAddressedMessageBase;
import jais.messages.enums.FieldMap;
import lombok.Getter;
import jais.messages.enums.BinaryAddressedMessageType;
/**
*
* @author Jonathan Machen {@literal }
*/
public class IMO289AreaNotice extends BinaryAddressedMessageBase {
/**
*
* @param source the name of the source of this message
* @param sentences the AIS Sentences from which this message was composed
*/
public IMO289AreaNotice(String source, AISSentence... sentences) {
super(source, BinaryAddressedMessageType.AREA_NOTICE, sentences);
}
/**
*/
@Override
public final void decode() {
super.decode();
// here we need to figure out how many elements in an array of sub-
// areas there are (could be up to ten) based on the size of
// remaining data after we decode the duration -- may use a public
// static inner class to represent the sub-area information and just store
// the array
}
/**
*
*/
@Getter
private enum IMO289AreaNoticeFieldMap implements FieldMap {
DEFAULT(-1, -1);
private final int startBit;
private final int endBit;
/**
*
* @param startBit the first bit of the target field
* @param endBit the last bit of the target field
*/
IMO289AreaNoticeFieldMap(int startBit, int endBit) {
this.startBit = startBit;
this.endBit = endBit;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy