index
int64 | repo_id
string | file_path
string | content
string |
|---|---|---|---|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/flightstatus
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/flightstatus/events/ReceivedFromFlight.java
|
package aero.champ.cargojson.flightstatus.events;
import aero.champ.cargojson.common.FlightIdentity;
import aero.champ.cargojson.common.IATAAirportCode;
import aero.champ.cargojson.flightstatus.FlightEvent;
import com.fasterxml.jackson.annotation.JsonClassDescription;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import java.time.LocalDate;
import java.util.Optional;
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonClassDescription("This event reports that the consignment was received from a flight.\nConforms to CIMP FSU status 'RCF'.")
public class ReceivedFromFlight extends FlightEvent {
public ReceivedFromFlight(){}
@JsonPropertyDescription("The flight the consignment was received from.")
public Optional<FlightIdentity> flight = Optional.empty();
@JsonProperty(required = true)
@JsonPropertyDescription("The date the consignment was received at.")
public LocalDate dateOfScheduledArrival;
@JsonProperty(required = true)
@JsonPropertyDescription("The destination airport of the consignment.")
public IATAAirportCode destination;
@Override
public Optional<IATAAirportCode> airportOfEvent() {
return Optional.of(destination);
}
@Override
public Optional<FlightIdentity> flight() {
return flight;
}
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/flightstatus
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/flightstatus/events/ReceivedFromShipper.java
|
package aero.champ.cargojson.flightstatus.events;
import aero.champ.cargojson.common.DensityGroup;
import aero.champ.cargojson.common.FlightIdentity;
import aero.champ.cargojson.common.IATAAirportCode;
import aero.champ.cargojson.common.Volume;
import aero.champ.cargojson.docgen.annotations.JsonDocExample;
import aero.champ.cargojson.flightstatus.FlightEvent;
import com.fasterxml.jackson.annotation.JsonClassDescription;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import java.util.Optional;
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonClassDescription("This event reports that the consignment was received from shipper or agent.\nConforms to CIMP FSU status 'RCS'.")
public class ReceivedFromShipper extends FlightEvent {
public ReceivedFromShipper(){}
@JsonProperty(required = true)
@JsonPropertyDescription("Airport where the consignment was received.")
public IATAAirportCode airportOfReceipt;
@JsonPropertyDescription("Identification of individual or company that received the consignment.")
@JsonDocExample("Ace Shipping Co.")
public Optional<String> receivedFromName = Optional.empty();
@JsonPropertyDescription("Volume of the received consignment.")
public Optional<Volume> volume = Optional.empty();
@JsonPropertyDescription("Density group of the received consignment.")
public Optional<DensityGroup> densityGroup = Optional.empty();
@Override
public Optional<IATAAirportCode> airportOfEvent() {
return Optional.of(airportOfReceipt);
}
@Override
public Optional<FlightIdentity> flight() {
return Optional.empty();
}
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/flightstatus
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/flightstatus/events/ReportedToCustoms.java
|
package aero.champ.cargojson.flightstatus.events;
import aero.champ.cargojson.common.FlightIdentity;
import aero.champ.cargojson.common.IATAAirportCode;
import aero.champ.cargojson.flightstatus.FlightEvent;
import com.fasterxml.jackson.annotation.JsonClassDescription;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import java.time.LocalDate;
import java.util.Optional;
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonClassDescription("This event reports that the consignment was reported to customs.\nConforms to CIMP FSU status 'CRC'.")
public class ReportedToCustoms extends FlightEvent {
public ReportedToCustoms(){}
@JsonProperty(required = true)
@JsonPropertyDescription("The airport where the consignment was reported to customs.")
public IATAAirportCode airportOfReporting;
@JsonPropertyDescription("The flight the consignment is or was loaded on.")
public Optional<FlightIdentity> flight = Optional.empty();
@JsonPropertyDescription("The scheduled departure date of the flight.")
public Optional<LocalDate> dateOfScheduledDeparture = Optional.empty();
@JsonPropertyDescription("The origin airport of the flight.")
public Optional<IATAAirportCode> origin = Optional.empty();
@JsonPropertyDescription("The destination airport of the flight.")
public Optional<IATAAirportCode> destination = Optional.empty();
@Override
public Optional<IATAAirportCode> airportOfEvent() {
return Optional.of(airportOfReporting);
}
@Override
public Optional<FlightIdentity> flight() {
return flight;
}
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/flightstatus
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/flightstatus/events/TransferManifested.java
|
package aero.champ.cargojson.flightstatus.events;
import aero.champ.cargojson.common.FlightIdentity;
import aero.champ.cargojson.common.IATAAirportCode;
import aero.champ.cargojson.common.IATACarrierCode;
import aero.champ.cargojson.flightstatus.FlightEvent;
import com.fasterxml.jackson.annotation.JsonClassDescription;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import java.util.Optional;
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonClassDescription("This event reports that the consignment's transfer to another airline was manifested.\nConforms to CIMP FSU status 'TRM'.")
public class TransferManifested extends FlightEvent {
public TransferManifested(){}
@JsonProperty(required = true)
@JsonPropertyDescription("The carrier receiving the transferred consignment.")
public IATACarrierCode receivingCarrier;
@JsonProperty(required = true)
@JsonPropertyDescription("The airport of the transfer.")
public IATAAirportCode airportOfTransfer;
@Override
public Optional<IATAAirportCode> airportOfEvent() {
return Optional.of(airportOfTransfer);
}
@Override
public Optional<FlightIdentity> flight() {
return Optional.empty();
}
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/flightstatus
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/flightstatus/events/TransferredToCarrier.java
|
package aero.champ.cargojson.flightstatus.events;
import aero.champ.cargojson.common.FlightIdentity;
import aero.champ.cargojson.common.IATAAirportCode;
import aero.champ.cargojson.common.IATACarrierCode;
import aero.champ.cargojson.common.TransferManifestNumber;
import aero.champ.cargojson.docgen.annotations.JsonDocExample;
import aero.champ.cargojson.flightstatus.FlightEvent;
import com.fasterxml.jackson.annotation.JsonClassDescription;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import java.util.Optional;
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonClassDescription("This event reports that the consignment was transferred to another carrier/airline.\nConforms to CIMP FSU status 'TFD'.")
public class TransferredToCarrier extends FlightEvent {
public TransferredToCarrier(){}
@JsonProperty(required = true)
@JsonPropertyDescription("The carrier receiving the transferred consignment.")
public IATACarrierCode receivingCarrier;
@JsonProperty(required = true)
@JsonPropertyDescription("The airport of the transfer.")
public IATAAirportCode airportOfTransfer;
@JsonPropertyDescription("Transfer manifest number.")
public Optional<TransferManifestNumber> transferManifestNumber = Optional.empty();
@JsonPropertyDescription("The carrier transferring the consignment.")
public Optional<IATACarrierCode> transferringCarrier = Optional.empty();
@JsonPropertyDescription("Identification of individual or company involved in the transfer of the consignment.")
@JsonDocExample("Ace Shipping Co.")
public Optional<String> transferredFromName = Optional.empty();
@Override
public Optional<IATAAirportCode> airportOfEvent() {
return Optional.of(airportOfTransfer);
}
@Override
public Optional<FlightIdentity> flight() {
return Optional.empty();
}
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/flightstatus
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/flightstatus/events/TransferredToCustoms.java
|
package aero.champ.cargojson.flightstatus.events;
import aero.champ.cargojson.common.FlightIdentity;
import aero.champ.cargojson.common.IATAAirportCode;
import aero.champ.cargojson.flightstatus.FlightEvent;
import com.fasterxml.jackson.annotation.JsonClassDescription;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import java.util.Optional;
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonClassDescription("This event reports that the consignment was transferred to customs.\nConforms to CIMP FSU status 'TGC'.")
public class TransferredToCustoms extends FlightEvent {
public TransferredToCustoms(){}
@JsonProperty(required = true)
@JsonPropertyDescription("The airport of the transfer.")
public IATAAirportCode airportOfTransfer;
@Override
public Optional<IATAAirportCode> airportOfEvent() {
return Optional.of(airportOfTransfer);
}
@Override
public Optional<FlightIdentity> flight() {
return Optional.empty();
}
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/jackson/DefaultObjectMapperBuilder.java
|
package aero.champ.cargojson.jackson;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
public class DefaultObjectMapperBuilder {
public static SimplifiedObjectMapper build() {
ObjectMapper objectMapper = new ObjectMapper();
objectMapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE);
objectMapper.disable(SerializationFeature.WRITE_DATES_WITH_ZONE_ID);
objectMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
objectMapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING);
objectMapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING);
objectMapper.enable(SerializationFeature.INDENT_OUTPUT);
objectMapper.registerModule(new Jdk8Module());
JavaTimeModule module = new JavaTimeModule();
objectMapper.registerModule(module);
return new SimplifiedObjectMapper(objectMapper);
}
static final SimplifiedObjectMapper mapper = build();
public static SimplifiedObjectMapper globalMapper() {
return mapper;
}
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/jackson/SimplifiedObjectMapper.java
|
package aero.champ.cargojson.jackson;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
public class SimplifiedObjectMapper {
private final ObjectMapper delegate;
public SimplifiedObjectMapper(ObjectMapper objectMapper) {
this.delegate = objectMapper;
}
public String writeValueAsString(Object data) {
try {
return delegate.writeValueAsString(data);
} catch (JsonProcessingException e) {
throw new RuntimeException(e);
}
}
public <T> T readValue(String data, Class<? extends T> clazz) {
try {
return delegate.readValue(data,clazz);
} catch (IOException e) {
throw new RuntimeException(e);
}
}
public ObjectMapper getObjectMapper() {
return delegate;
}
public <T> T copy(T object) {
return readValue(writeValueAsString(object),(Class<T>)object.getClass());
}
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/spaceallocation/SpaceAllocationAnswer.java
|
package aero.champ.cargojson.spaceallocation;
import aero.champ.cargojson.common.*;
import aero.champ.cargojson.docgen.annotations.JsonDocExample;
import com.fasterxml.jackson.annotation.JsonClassDescription;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import java.util.*;
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonClassDescription("A Space Allocation Request is used for the following actions:\n" +
"-- reply to an AWB Space Allocation Request Message indicating that requested space can or cannot be confirmed." +
"-- reply to an AWB Space Allocation Request Message indicating that request is being processed and that further Space Allocation Answer message will follow." +
"-- reply to an AWB Space Allocation Request Message confirming or refusing the accepted updates by showing the new space allocation details."
)
public class SpaceAllocationAnswer {
@JsonProperty(required = true)
@JsonPropertyDescription("Contains the air waybill number.")
public AirWaybillNumber airWaybillNumber;
@JsonProperty(required = true)
@JsonPropertyDescription("Origin and destination airports of the consigment.")
public OriginAndDestination originAndDestination;
@JsonProperty(required = true)
@JsonPropertyDescription("Quantity details of the consigment.")
public Quantity quantity;
@JsonPropertyDescription("Volume data of the consignment.")
public Optional<Volume> volume = Optional.empty();
@JsonPropertyDescription("Total number of pieces of complete consignment.")
@JsonDocExample("20")
public Optional<Integer> totalConsignmentPieces = Optional.empty();
@JsonProperty(required = true)
@JsonPropertyDescription("Short description of the nature of the contained goods.")
@JsonDocExample("Electronic parts")
public String natureOfGoods;
@JsonPropertyDescription("Array of codes for special handling and dangerous goods.")
public Set<SpecialHandlingAndDangerousGoodsCode> specialHandlingRequirements = new HashSet<>();
@JsonProperty(required = true)
@JsonPropertyDescription("Array of flight details for the regarded consignment.")
public List<FlightDetails> flightDetails = new ArrayList<>();
@JsonProperty(required = true)
@JsonPropertyDescription("Booking reference.")
public ReferenceInfo bookingReference;
@JsonPropertyDescription("Other service information: Remarks relating to a shipment.")
@JsonDocExample("Extra charge due to special handling requirements.")
public Optional<String> otherServiceInformation = Optional.empty();
@JsonPropertyDescription("Special Service Request (Information related to instructions for special action required).")
@JsonDocExample("Must be kept above 5 degrees celsius.")
public Optional<String> specialServiceRequest = Optional.empty();
@JsonPropertyDescription("Shipment reference information.")
public Optional<ShipmentReferenceInfo> shipmentReferenceInformation = Optional.empty();
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/spaceallocation/SpaceAllocationAnswerMessage.java
|
package aero.champ.cargojson.spaceallocation;
import aero.champ.cargojson.common.Message;
import aero.champ.cargojson.docgen.annotations.JsonDocHint;
import com.fasterxml.jackson.annotation.JsonClassDescription;
@JsonClassDescription("Cargo Canonical message containing a SpaceAllocationAnswer as payload.")
@JsonDocHint(toplevel = true)
public class SpaceAllocationAnswerMessage extends Message<SpaceAllocationAnswer> {
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/spaceallocation/SpaceAllocationRequest.java
|
package aero.champ.cargojson.spaceallocation;
import aero.champ.cargojson.common.*;
import aero.champ.cargojson.docgen.annotations.JsonDocExample;
import com.fasterxml.jackson.annotation.JsonClassDescription;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import java.util.*;
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonClassDescription("A Space Allocation Request is used for the following actions:\n" +
"-- request that space on one or more flights be allocated for a nominated consignment." +
"-- request that the space allocated for a nominated consignment on one or more flights be cancelled." +
"-- request that the space allocated for a nominated consignment on one or more flights be cancelled and replaced by a similar space allocation on another flight(s)." +
"-- add new information or to change/delete information to existing booking(s)."
)
public class SpaceAllocationRequest {
@JsonProperty(required = true)
@JsonPropertyDescription("Contains the air waybill number.")
public AirWaybillNumber airWaybillNumber;
@JsonProperty(required = true)
@JsonPropertyDescription("Origin and destination airports of the consigment.")
public OriginAndDestination originAndDestination;
@JsonProperty(required = true)
@JsonPropertyDescription("Quantity details of the consigment.")
public Quantity quantity;
@JsonPropertyDescription("Volume data of the consignment.")
public Optional<Volume> volume = Optional.empty();
@JsonPropertyDescription("Density group - usually given if no volume data is specified.")
public Optional<DensityGroup> densityGroup = Optional.empty();
@JsonPropertyDescription("Total number of pieces of complete consignment.")
@JsonDocExample("20")
public Optional<Integer> totalConsignmentPieces = Optional.empty();
@JsonProperty(required = true)
@JsonPropertyDescription("Short description of the nature of the contained goods.")
@JsonDocExample("Electronic parts")
public String natureOfGoods;
@JsonPropertyDescription("Array of codes for special handling and dangerous goods.")
public Set<SpecialHandlingAndDangerousGoodsCode> specialHandlingRequirements = new HashSet<>();
@JsonProperty(required = true)
@JsonPropertyDescription("Array of flight details for the regarded consignment.")
public List<FlightDetails> flightDetails = new ArrayList<>();
@JsonProperty(required = true)
@JsonPropertyDescription("Booking reference.")
public ReferenceInfo bookingReference;
@JsonPropertyDescription("Array of Unit Load Device (ULD) data.")
public Optional<List<ULD>> uldDescriptions = Optional.empty();
@JsonPropertyDescription("Other service information: Remarks relating to a shipment.")
@JsonDocExample("Extra charge due to special handling requirements.")
public Optional<String> otherServiceInformation = Optional.empty();
@JsonPropertyDescription("Special Service Request (Information related to instructions for special action required).")
@JsonDocExample("Must be kept above 5 degrees celsius.")
public Optional<String> specialServiceRequest = Optional.empty();
@JsonPropertyDescription("Array of dimensions information.")
public Optional<List<DimensionInfo>> dimensionInformation = Optional.empty();
@JsonPropertyDescription("Shipment reference information.")
public Optional<ShipmentReferenceInfo> shipmentReferenceInformation = Optional.empty();
@JsonPropertyDescription("Customer identification.")
public Optional<CustomerIdentification> customerIdentification = Optional.empty();
@JsonPropertyDescription("Product information.")
public Optional<ProductInformation> productInformation = Optional.empty();
@JsonPropertyDescription("Account contact of the shipper.")
public Optional<AccountContact> shipper = Optional.empty();
@JsonPropertyDescription("Account contact of the consignee.")
public Optional<AccountContact> consignee = Optional.empty();
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/spaceallocation/SpaceAllocationRequestMessage.java
|
package aero.champ.cargojson.spaceallocation;
import aero.champ.cargojson.common.Message;
import aero.champ.cargojson.docgen.annotations.JsonDocHint;
import com.fasterxml.jackson.annotation.JsonClassDescription;
@JsonClassDescription("Cargo Canonical message containing a SpaceAllocationRequest as payload.")
@JsonDocHint(toplevel = true)
public class SpaceAllocationRequestMessage extends Message<SpaceAllocationRequest> {
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldcontrolreceipt/ConsignmentDestination.java
|
package aero.champ.cargojson.uldcontrolreceipt;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by Andy on 12/4/2017.
*/
public class ConsignmentDestination {
@JsonProperty(required = true)
public String destinationLocationCode;
public String destinationLocationName;
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldcontrolreceipt/ConsignmentDetails.java
|
package aero.champ.cargojson.uldcontrolreceipt;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by Andy on 12/4/2017.
*/
public class ConsignmentDetails {
@JsonProperty(required = true)
public String waybillNumber;
@JsonProperty(required = true)
public ConsignmentOrigin consignmentOrigin = new ConsignmentOrigin();
@JsonProperty(required = true)
public ConsignmentDestination consignmentDestination = new ConsignmentDestination();
@JsonProperty(required = true)
public boolean shipmentTotalFlag;
@JsonProperty(required = true)
public int pieces;
public int totalPieces;
@JsonProperty(required = true)
public String weightUnitMeasurement;
@JsonProperty(required = true)
public double grossWeight;
public int shippersLoadAndCount;
@JsonProperty(required = true)
public String natureOfGoods;
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldcontrolreceipt/ConsignmentOrigin.java
|
package aero.champ.cargojson.uldcontrolreceipt;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by Andy on 12/4/2017.
*/
public class ConsignmentOrigin {
@JsonProperty(required = true)
public String origionLocationCode;
public String origionLocationName;
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldcontrolreceipt/ListOfContactNumbers.java
|
package aero.champ.cargojson.uldcontrolreceipt;
/**
* Created by Andy on 11/30/2017.
*/
public class ListOfContactNumbers {
public String phoneNunmber;
public String faxNumber;
public String emailAddress;
public String telex;
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldcontrolreceipt/PartyDeclaration.java
|
package aero.champ.cargojson.uldcontrolreceipt;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.LocalDateTime;
/**
* Created by Andy on 12/4/2017.
*/
public class PartyDeclaration {
@JsonProperty(required = true)
public LocalDateTime declarationDateAndTime;
@JsonProperty(required = true)
public String declarationPlace;
@JsonProperty(required = true)
public String declarationSignature;
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldcontrolreceipt/ReceivingDeclarationDetails.java
|
package aero.champ.cargojson.uldcontrolreceipt;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by Andy on 12/4/2017.
*/
public class ReceivingDeclarationDetails {
@JsonProperty(required = true)
public String receivingPartyDeclarationSignature;
@JsonProperty(required = true)
public PartyDeclaration partyDeclaration = new PartyDeclaration();
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldcontrolreceipt/ReceivingPartyAddress.java
|
package aero.champ.cargojson.uldcontrolreceipt;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by Andy on 11/30/2017.
*/
public class ReceivingPartyAddress {
@JsonProperty(required = true)
public StreetDetail streetDetail = new StreetDetail();
public String department;
public String postalCode;
public String regionCode;
public String regionName;
public String cityCode;
public String cityName;
public String countryCode;
public String countryName;
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldcontrolreceipt/ReceivingPartyContactInformation.java
|
package aero.champ.cargojson.uldcontrolreceipt;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by Andy on 11/30/2017.
*/
public class ReceivingPartyContactInformation {
public String receivingPartyContactName;
@JsonProperty(required = true)
public ListOfContactNumbers listOfContactNumbers = new ListOfContactNumbers();
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldcontrolreceipt/ReceivingPartyDetails.java
|
package aero.champ.cargojson.uldcontrolreceipt;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Andy on 11/30/2017.
*/
public class ReceivingPartyDetails {
@JsonProperty(required = true)
public String partyTypeCode;
public String receivingPartyAccountNumber;
public String receivingPartyInternalId;
public String agencyCoded;
public String receivingPartyStandardId;
public String receivingPartyCode;
@JsonProperty(required = true)
public String receivingPartyName;
@JsonProperty(required = true)
public ReceivingPartyAddress receivingPartyAddress = new ReceivingPartyAddress();
public List<ReceivingPartyContactInformation> receivingPartyContactInformationList = new ArrayList<ReceivingPartyContactInformation>();
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldcontrolreceipt/StreetDetail.java
|
package aero.champ.cargojson.uldcontrolreceipt;
/**
* Created by Andy on 11/30/2017.
*/
public class StreetDetail {
public String poBox;
public String street;
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldcontrolreceipt/TransferLocation.java
|
package aero.champ.cargojson.uldcontrolreceipt;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by Andy on 11/30/2017.
*/
public class TransferLocation {
@JsonProperty(required = true)
public String transferLocationCode;
public String getTransferLocationName;
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldcontrolreceipt/TransferringDeclarationDetails.java
|
package aero.champ.cargojson.uldcontrolreceipt;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by Andy on 12/4/2017.
*/
public class TransferringDeclarationDetails {
@JsonProperty(required = true)
public String transferringPartyDeclarationSignature;
@JsonProperty(required = true)
public PartyDeclaration partyDeclaration = new PartyDeclaration();
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldcontrolreceipt/TransferringPartyAddress.java
|
package aero.champ.cargojson.uldcontrolreceipt;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by Andy on 11/30/2017.
*/
public class TransferringPartyAddress {
@JsonProperty(required = true)
public StreetDetail streetDetail = new StreetDetail();
public String department;
public String postalCode;
public String regionCode;
public String regionName;
public String cityCode;
public String cityName;
public String countryCode;
public String countryName;
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldcontrolreceipt/TransferringPartyContactInformation.java
|
package aero.champ.cargojson.uldcontrolreceipt;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by Andy on 11/30/2017.
*/
public class TransferringPartyContactInformation {
public String transferringPartyContactName;
@JsonProperty(required = true)
public ListOfContactNumbers listOfContactNumbers = new ListOfContactNumbers();
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldcontrolreceipt/TransferringPartyDetails.java
|
package aero.champ.cargojson.uldcontrolreceipt;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Andy on 11/30/2017.
*/
public class TransferringPartyDetails {
@JsonProperty(required = true)
public String partyTypeCode;
public String transferringPartyAccountNumber;
public String transferringPartyInternalId;
public String agencyCoded;
public String transferringPartyStandardId;
public String transferringPartyCode;
@JsonProperty(required = true)
public String transferringPartyName;
@JsonProperty(required = true)
public TransferringPartyAddress transferringPartyAddress = new TransferringPartyAddress();
public List<TransferringPartyContactInformation> transferringPartyContactInformationList = new ArrayList<TransferringPartyContactInformation>();
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldcontrolreceipt/ULDControlReceipt.java
|
package aero.champ.cargojson.uldcontrolreceipt;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Andy on 11/30/2017.
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class ULDControlReceipt {
@JsonProperty(required = true)
public ULDControlReceiptHeader uldControlReceiptHeader = new ULDControlReceiptHeader();
@JsonProperty(required = true)
public List<ULDControlReceiptBody> uldControlReceiptBody = new ArrayList<ULDControlReceiptBody>();
public ULDControlReceiptSummary uldControlReceiptSummary = new ULDControlReceiptSummary();
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldcontrolreceipt/ULDControlReceiptBody.java
|
package aero.champ.cargojson.uldcontrolreceipt;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Andy on 11/30/2017.
*/
public class ULDControlReceiptBody {
@JsonProperty(required = true)
public ULDNumberDetails numberDetail = new ULDNumberDetails();
@JsonProperty(required = true)
public ULDOrigin uldOrigin = new ULDOrigin();
@JsonProperty(required = true)
public ULDDestination uldDestination = new ULDDestination();
@JsonProperty(required = true)
public String loadedFlag;
public String uldWeight;
public String uldPieces;
public List<ConsignmentDetails> consignmentDetailsList = new ArrayList<ConsignmentDetails>();
public int numberOfNets;
public int numberOfDoor;
public int numberOfStrap;
public int numberOfFittings;
@JsonProperty(required = true)
public String demurrageCode;
@JsonProperty(required = true)
public boolean damageFlag;
@JsonProperty(required = true)
public String serviceabilityCode;
public String ODLNCode;
public String ODLNDescription;
public String damageDescription;
public String remarks;
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldcontrolreceipt/ULDControlReceiptHeader.java
|
package aero.champ.cargojson.uldcontrolreceipt;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.LocalDateTime;
/**
* Created by Andy on 11/30/2017.
*/
public class ULDControlReceiptHeader {
public ULDControlReceiptHeader(){};
@JsonProperty(required = true)
public String uldControlReceiptNumber;
@JsonProperty(required = true)
public LocalDateTime transferDateAndTime;
@JsonProperty(required = true)
public TransferLocation transferLocation = new TransferLocation();
@JsonProperty(required = true)
public TransferringPartyDetails transferringPartyDetails = new TransferringPartyDetails();
@JsonProperty(required = true)
public ReceivingPartyDetails receivingPartyDetails = new ReceivingPartyDetails();
@JsonProperty(required = true)
public String loadedFlag;
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldcontrolreceipt/ULDControlReceiptSummary.java
|
package aero.champ.cargojson.uldcontrolreceipt;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by Andy on 11/30/2017.
*/
public class ULDControlReceiptSummary {
public int totalNumberOfLines;
@JsonProperty(required = true)
public int totalNumberOfULDs;
public int totalNumberOfNets;
public int totalNumberOfDoors;
public int totalNumberOfStraps;
public int totalNumberOfFittings;
public int totalNumberOfShipments;
public String supplementaryInformation;
@JsonProperty(required = true)
public TransferringDeclarationDetails transferringDeclarationDetails = new TransferringDeclarationDetails();
@JsonProperty(required = true)
public ReceivingDeclarationDetails receivingDeclarationDetails = new ReceivingDeclarationDetails();
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldcontrolreceipt/ULDDestination.java
|
package aero.champ.cargojson.uldcontrolreceipt;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by Andy on 12/4/2017.
*/
public class ULDDestination {
@JsonProperty(required = true)
public String destinationLocationCode;
@JsonProperty(required = true)
public String destinationLocationName;
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldcontrolreceipt/ULDNumberDetails.java
|
package aero.champ.cargojson.uldcontrolreceipt;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by Andy on 12/4/2017.
*/
public class ULDNumberDetails {
@JsonProperty(required = true)
public String uldType;
@JsonProperty(required = true)
public String uldSerialNumber;
@JsonProperty(required = true)
public String uldOwnerCode;
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldcontrolreceipt/ULDOrigin.java
|
package aero.champ.cargojson.uldcontrolreceipt;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by Andy on 12/4/2017.
*/
public class ULDOrigin {
@JsonProperty(required = true)
public String originLocationCode;
public String originLocationName;
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldexchangecontrol/ReceivingPartyDetails.java
|
package aero.champ.cargojson.uldexchangecontrol;
import com.fasterxml.jackson.annotation.JsonProperty;
public class ReceivingPartyDetails {
@JsonProperty(required = true)
public String carrierCode;
public String nonCarrierIdentifier;
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldexchangecontrol/TransferringPartyDetails.java
|
package aero.champ.cargojson.uldexchangecontrol;
import com.fasterxml.jackson.annotation.JsonProperty;
public class TransferringPartyDetails {
@JsonProperty(required = true)
public String carrierCode;
public String nonCarrierIdentifier;
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldexchangecontrol/ULDConditionDetails.java
|
package aero.champ.cargojson.uldexchangecontrol;
public class ULDConditionDetails {
public String uldServicableCode;
public String uldDamageCode;
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldexchangecontrol/ULDDetails.java
|
package aero.champ.cargojson.uldexchangecontrol;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.LocalDateTime;
public class ULDDetails {
@JsonProperty(required = true)
public ULDIdentification uldIdentification;
@JsonProperty(required = true)
public LocalDateTime dateTimeOfTransfer;
@JsonProperty(required = true)
public ReceivingPartyDetails receivingPartyDetails;
@JsonProperty(required = true)
public String locationOfTransfer;
@JsonProperty(required = true)
public String uldControlReceiptNumber;
@JsonProperty(required = true)
public String locationOfFinalDestination;
@JsonProperty(required = true)
public ULDConditionDetails uldConditionDetails;
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldexchangecontrol/ULDExchangeControl.java
|
package aero.champ.cargojson.uldexchangecontrol;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class ULDExchangeControl {
@JsonProperty(required = true)
public List<ULDDetails> uldDetailsList;
public String supplementaryInformation;
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldexchangecontrol/ULDExchangeControlMessage.java
|
package aero.champ.cargojson.uldexchangecontrol;
import aero.champ.cargojson.common.Message;
public class ULDExchangeControlMessage extends Message<ULDExchangeControl> {
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/uldexchangecontrol/ULDIdentification.java
|
package aero.champ.cargojson.uldexchangecontrol;
import com.fasterxml.jackson.annotation.JsonProperty;
public class ULDIdentification {
@JsonProperty(required = true)
public String ULDType;
@JsonProperty(required = true)
public String ULDSerialNumber;
@JsonProperty(required = true)
public String ULDOwnerCode;
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/validation/CargoImpPatterns.java
|
package aero.champ.cargojson.validation;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Pattern;
public class CargoImpPatterns {
static final Map<String,Pattern> patternCache = Collections.synchronizedMap(new HashMap<>());
public static Pattern toPattern(String cimpFormatSpec) {
return patternCache.computeIfAbsent(cimpFormatSpec,k->Pattern.compile(transformPattern(cimpFormatSpec)));
}
private static String transformPattern(String format) {
String transformedPattern = format.replace("[", "{").replace("]", "}").replace("...", ",").replace("{,", "{1,").replace("(", "(?:").replace(")", ")?").replace("a", "[A-Za-z]").replace("n", "[0-9]").replace("m", "[0-9A-Za-z]").replace("t", "[0-9A-Za-z \\-\\.]");
if (transformedPattern.endsWith("p")) {
transformedPattern = transformedPattern.substring(0,transformedPattern.length()-1).replace("[0-9]","[0-9\\.\\,]");
}
return transformedPattern;
}
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/validation/ValidationContext.java
|
package aero.champ.cargojson.validation;
import java.util.Collection;
import java.util.regex.Pattern;
public interface ValidationContext {
void checkPattern(String textToCheck, Pattern checkPattern, String contextInfomation);
void checkSize(Collection<?> collection, int lowerBoundInclusive, int upperBoundInclusive, String contextInfomation);
void error(String text);
ValidationScope withContext(String consignmentDetail);
}
|
0
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson
|
java-sources/aero/champ/cargojson/1.0/aero/champ/cargojson/validation/ValidationScope.java
|
package aero.champ.cargojson.validation;
import java.util.function.Consumer;
public interface ValidationScope {
void validate(Consumer<ValidationContext> contextConsumer);
}
|
0
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client/api/ApiError.java
|
package aero.loretta.client.api;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
class ApiError {
@JsonProperty("message")
private String message;
@JsonProperty("correlation_id")
private String correlationId;
public String getMessage() {
return message;
}
public ApiError setMessage(String message) {
this.message = message;
return this;
}
public String getCorrelationId() {
return correlationId;
}
public ApiError setCorrelationId(String correlationId) {
this.correlationId = correlationId;
return this;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ApiError apiError = (ApiError) o;
return Objects.equals(message, apiError.message) &&
Objects.equals(correlationId, apiError.correlationId);
}
@Override
public int hashCode() {
return Objects.hash(
message,
correlationId);
}
@Override
public String toString() {
return "ApiError{" +
"message='" + message + '\'' +
", correlationId='" + correlationId + '\'' +
'}';
}
}
|
0
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client/api/ApiSuccess.java
|
package aero.loretta.client.api;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
class ApiSuccess {
@JsonProperty("message")
private String message;
public String getMessage() {
return message;
}
public ApiSuccess setMessage(String message) {
this.message = message;
return this;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ApiSuccess that = (ApiSuccess) o;
return Objects.equals(message, that.message);
}
@Override
public int hashCode() {
return Objects.hash(
message);
}
@Override
public String toString() {
return "ApiSuccess{" +
"message='" + message + '\'' +
'}';
}
}
|
0
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client/api/FlightMetadata.java
|
package aero.loretta.client.api;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Objects;
class FlightMetadata {
@JsonProperty("gufi")
private String gufi;
@JsonProperty("employee_ids")
private List<String> employeeIds;
public String getGufi() {
return gufi;
}
public FlightMetadata setGufi(String gufi) {
this.gufi = gufi;
return this;
}
public List<String> getEmployeeIds() {
return employeeIds;
}
public FlightMetadata setEmployeeIds(List<String> employeeIds) {
this.employeeIds = employeeIds;
return this;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
FlightMetadata that = (FlightMetadata) o;
return Objects.equals(gufi, that.gufi) &&
Objects.equals(employeeIds, that.employeeIds);
}
@Override
public int hashCode() {
return Objects.hash(
gufi,
employeeIds);
}
@Override
public String toString() {
return "FlightMetadata{" +
"gufi=" + gufi +
", employeeIds=" + employeeIds +
'}';
}
}
|
0
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client/api/FlightPlanXmlRequest.java
|
package aero.loretta.client.api;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
class FlightPlanXmlRequest {
@JsonProperty("flight_plan_xml")
private String flightPlanXml;
@JsonProperty("metadata")
private FlightMetadata metadata;
public String getFlightPlanXml() {
return flightPlanXml;
}
public FlightPlanXmlRequest setFlightPlanXml(String flightPlanXml) {
this.flightPlanXml = flightPlanXml;
return this;
}
public FlightMetadata getMetadata() {
return metadata;
}
public FlightPlanXmlRequest setMetadata(FlightMetadata metadata) {
this.metadata = metadata;
return this;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
FlightPlanXmlRequest that = (FlightPlanXmlRequest) o;
return Objects.equals(flightPlanXml, that.flightPlanXml) &&
Objects.equals(metadata, that.metadata);
}
@Override
public int hashCode() {
return Objects.hash(
flightPlanXml,
metadata);
}
@Override
public String toString() {
return "FlightPlanXmlRequest{" +
"flightPlanXml='" + flightPlanXml + '\'' +
", metadata=" + metadata +
'}';
}
}
|
0
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client/api/IOUtils.java
|
package aero.loretta.client.api;
import java.io.*;
import java.util.HashMap;
import java.util.Map;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
class IOUtils {
private static final int EOF = -1;
private static final byte[] ZIP_MAGIC = {0x50, 0x4b, 0x03, 0x04};
public static Map<String, byte[]> readZipArchive(byte[] content) throws IOException {
Map<String, byte[]> result = new HashMap<>();
try (ZipInputStream zipInputStream = new ZipInputStream(new ByteArrayInputStream(content))) {
ZipEntry zipEntry;
while((zipEntry = zipInputStream.getNextEntry()) != null) {
try {
if (!zipEntry.isDirectory()) {
try (ByteArrayOutputStream out = new ByteArrayOutputStream()) {
copy(zipInputStream, out);
result.put(zipEntry.getName(), out.toByteArray());
}
}
} finally {
zipInputStream.closeEntry();
}
}
}
return result;
}
public static boolean isZipArchive(byte[] content) {
if (content.length <= ZIP_MAGIC.length) {
return false;
}
for(int i = 0; i < ZIP_MAGIC.length; i++) {
if (ZIP_MAGIC[i] != content[i]) {
return false;
}
}
return true;
}
public static void copy(InputStream in, OutputStream out) throws IOException {
byte[] buffer = new byte[4096];
int read;
while((read = in.read(buffer)) != EOF) {
out.write(buffer, 0, read);
}
}
}
|
0
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client/api/LorettaApi.java
|
package aero.loretta.client.api;
import aero.loretta.client.exception.LorettaClientException;
import java.util.List;
/**
* Loretta API client for accessing public Loretta API.
* <p>
* For creating instance of Loretta API client, please use {@link LorettaApiFactory}
*/
public interface LorettaApi {
/**
* Standard API response
*/
interface UploadResponse {
/**
* Response message from API.
* @return response message
*/
String getMessage();
/**
* Gufi that was provided or generated in case where no gufi was provided
* @return gufi
*/
String getGufi();
}
/**
* @see LorettaApi#uploadFlightPlan(String, String, List)
*/
default UploadResponse uploadFlightPlan(String flightPlan) throws LorettaClientException {
return uploadFlightPlan(flightPlan, null, null);
}
/**
* @see LorettaApi#uploadFlightPlan(String, String, List)
*/
default UploadResponse uploadFlightPlan(String flightPlan, String gufi) throws LorettaClientException {
return uploadFlightPlan(flightPlan, gufi, null);
}
/**
* @see LorettaApi#uploadFlightPlan(String, String, List)
*/
default UploadResponse uploadFlightPlan(String flightPlan, List<String> employeeIds) throws LorettaClientException {
return uploadFlightPlan(flightPlan, null, employeeIds);
}
/**
* Upload ARINC633 Flightplan to Loretta system. This will create or update flightplan in Loretta system, whereby
* for update GUFI needs to match the GUFI that was used to upload flightplan for first time.
* <p>
* If your flightplan does not contain GUFI (FlightKeyIdentifier), then you MAY provide it as argument. Provided
* GUFI should be either UUID or it should be prefixed with your operator ICAO code. If you don't provide GUFI
* and your flightplan does not contain it, then API client itself will generate GUFI out of flight data in form
* of ${OPERATOR}-${STD}-${CALLSIGN}-${DEP}-${DST}.
*
* @param flightPlan ARINC633 Flightplan in XML format
* @param gufi (Optional) The gufi of flightplan
* @param employeeIds (Optional) The ids of employees
* @return {@link LorettaApi.UploadResponse} in case of success
* @throws LorettaClientException when API fails or provided arguments are invalid
*/
UploadResponse uploadFlightPlan(String flightPlan, String gufi, List<String> employeeIds) throws LorettaClientException;
/**
* @see LorettaApi#uploadEff(byte[], String, List)
*/
default UploadResponse uploadEff(byte[] eff) {
return uploadEff(eff, null, null);
}
/**
* @see LorettaApi#uploadEff(byte[], String, List)
*/
default UploadResponse uploadEff(byte[] eff, String gufi) throws LorettaClientException {
return uploadEff(eff, gufi, null);
}
/**
* @see LorettaApi#uploadEff(byte[], String, List)
*/
default UploadResponse uploadEff(byte[] eff, List<String> employeeIds) throws LorettaClientException {
return uploadEff(eff, null, employeeIds);
}
/**
* Extract ARINC633 flightplan from EFF package and calls {@link LorettaApi#uploadFlightPlan(String, String, List)}
*/
UploadResponse uploadEff(byte[] eff, String gufi, List<String> employeeIds) throws LorettaClientException;
}
|
0
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client/api/LorettaApiFactory.java
|
package aero.loretta.client.api;
/**
* Standard LorettaApi factory
*/
public class LorettaApiFactory {
public enum Environment {
TEST("https://test.loretta.aero/api/v1"),
PROD("https://prod.loretta.aero/api/v1");
private final String baseUri;
Environment(String baseUri) {
this.baseUri = baseUri;
}
public String getBaseUri() {
return baseUri;
}
}
/**
* Endpoint configuration factory
*/
public interface EndpointSettings {
/**
* Provide one of the well known environment
* @param environment well known (test, prod) environment to be used
* @return next factory class
*/
OperatorSettings wellKnownEnv(Environment environment);
/**
* Provide custom environment
* @param baseUri base URI of custom environment
* @return next factory class
*/
OperatorSettings customEnv(String baseUri);
}
/**
* Operator configuration factory
*/
public interface OperatorSettings {
/**
* Provide primary operator to be used with API
* @param operator 3-letter operator code
* @return next factory class
*/
AuthenticationSettings operator(String operator);
}
/**
* Authentication factory
*/
public interface AuthenticationSettings {
/**
* Provide username and password for API authentication
* @param username username
* @param password password
* @return next factory class
*/
Builder authentication(String username, String password);
}
/**
* Final builder factory
*/
public interface Builder {
/**
* Build LorettaApi
* @return instance of LorettaApi
*/
LorettaApi build();
}
private static class Settings {
private String baseUri;
private String operator;
private String username;
private String password;
}
public static EndpointSettings newBuilder() {
Settings settings = new Settings();
Builder builder = () -> new LorettaApiImpl(settings.baseUri, settings.operator, settings.username, settings.password);
AuthenticationSettings authenticationSettings = ((username, password) -> {
settings.username = username;
settings.password = password;
return builder;
});
OperatorSettings operatorSettings = operator -> {
settings.operator = operator;
return authenticationSettings;
};
EndpointSettings endpointSettings = new EndpointSettings() {
@Override
public OperatorSettings wellKnownEnv(Environment environment) {
settings.baseUri = environment.getBaseUri();
return operatorSettings;
}
@Override
public OperatorSettings customEnv(String baseUri) {
settings.baseUri = baseUri;
return operatorSettings;
}
};
return endpointSettings;
}
}
|
0
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client/api/LorettaApiImpl.java
|
package aero.loretta.client.api;
import aero.loretta.client.api.arinc633.Metadata;
import aero.loretta.client.exception.ApiErrorException;
import aero.loretta.client.exception.AuthenticationFailedException;
import aero.loretta.client.exception.InvalidGufiException;
import aero.loretta.client.exception.LorettaClientException;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.*;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.charset.StandardCharsets;
import java.time.Duration;
import java.time.ZoneOffset;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeFormatterBuilder;
import java.time.temporal.ChronoField;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
class LorettaApiImpl implements LorettaApi {
private static final Logger log = LoggerFactory.getLogger(LorettaApi.class);
private static final Pattern RX_UUID = Pattern.compile(
"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$");
private static final Pattern RX_FLIGHTPLAN_ROOT = Pattern.compile(
"<FlightPlan(\\s|>)");
private final DateTimeFormatter STD_GUFI_FORMATTER = (new DateTimeFormatterBuilder())
.parseCaseInsensitive()
.appendValue(ChronoField.YEAR, 4)
.appendValue(ChronoField.MONTH_OF_YEAR, 2)
.appendValue(ChronoField.DAY_OF_MONTH, 2)
.appendLiteral("T")
.appendValue(ChronoField.HOUR_OF_DAY, 2)
.appendValue(ChronoField.MINUTE_OF_HOUR, 2)
.appendValue(ChronoField.SECOND_OF_MINUTE, 2)
.toFormatter();
private final String baseUrl;
private final String operator;
private final String operatorGufiPrefix;
private final String authorization;
private final ObjectMapper objectMapper;
LorettaApiImpl(String baseUrl, String operator, String username, String password) {
this.baseUrl = URI.create(baseUrl)
.normalize()
.toString()
.replaceAll("/*$", "");
this.operator = operator.toUpperCase();
this.operatorGufiPrefix = operator.toUpperCase();
String authorizationPlain = "%s:%s".formatted(username, password);
this.authorization = Base64.getEncoder().encodeToString(authorizationPlain.getBytes(StandardCharsets.UTF_8));
this.objectMapper = new ObjectMapper();
this.objectMapper.findAndRegisterModules();
this.objectMapper.setSerializationInclusion(JsonInclude.Include.NON_EMPTY);
this.objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
this.objectMapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
this.objectMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
this.objectMapper.disable(SerializationFeature.WRITE_DURATIONS_AS_TIMESTAMPS);
}
@Override
public UploadResponse uploadFlightPlan(String flightPlan, String gufi, List<String> employeeIds) throws LorettaClientException {
Objects.requireNonNull(flightPlan, "Flightplan is required");
if (Objects.nonNull(gufi)) {
validateGufi(gufi);
}
Metadata metadata = Metadata.parse(flightPlan);
String GUFI = Optional.ofNullable(gufi)
.orElseGet(() -> getOrGenerateGufi(metadata));
FlightPlanXmlRequest request = new FlightPlanXmlRequest()
.setFlightPlanXml(flightPlan)
.setMetadata(new FlightMetadata()
.setGufi(GUFI)
.setEmployeeIds(employeeIds));
String message = upload("flightplanxml", request);
return new UploadResponseImpl(message, GUFI);
}
@Override
public UploadResponse uploadEff(byte[] eff, String gufi, List<String> employeeIds) throws LorettaClientException {
Objects.requireNonNull(eff, "eff is required");
String xml = extractFlightPlanXml(eff);
return uploadFlightPlan(xml, gufi, employeeIds);
}
private String getOrGenerateGufi(Metadata metadata) {
return metadata.getGufi().orElseGet(() -> generateGufi(metadata));
}
private String generateGufi(Metadata metadata) {
return "%s-%s-%s-%s-%s".formatted(
operatorGufiPrefix,
metadata.getStd().atZone(ZoneOffset.UTC).format(STD_GUFI_FORMATTER),
metadata.getCallsign().toUpperCase(),
metadata.getDeparture().toUpperCase(),
metadata.getArrival().toUpperCase()
);
}
private <T> String upload(String suffix, T request) {
String bodyPayload;
try {
bodyPayload = objectMapper.writeValueAsString(request);
} catch (JsonProcessingException ex) {
throw new LorettaClientException("Unable to serialize request", ex);
}
URI uri = URI.create("%s/%s/%s".formatted(baseUrl, operator, suffix));
log.debug("Sending request: URI={}, Body={}", uri, bodyPayload);
HttpRequest httpRequest = HttpRequest.newBuilder(uri)
.header("Content-Type", "application/json")
.header("Authorization", "Basic " + authorization)
.timeout(Duration.ofSeconds(60))
.POST(HttpRequest.BodyPublishers.ofString(bodyPayload))
.build();
HttpClient httpClient = HttpClient.newBuilder()
.connectTimeout(Duration.ofSeconds(30))
.followRedirects(HttpClient.Redirect.NEVER)
.version(HttpClient.Version.HTTP_1_1)
.build();
HttpResponse<String> response;
try {
response = httpClient.send(httpRequest, HttpResponse.BodyHandlers.ofString());
} catch (IOException | InterruptedException e) {
log.debug("Request failed", e);
throw new LorettaClientException("Unable to send request", e);
}
if (response.statusCode() == 200) {
try {
ApiSuccess success = objectMapper.readValue(response.body(), ApiSuccess.class);
log.debug("Successful response received: {}", success.getMessage());
return success.getMessage();
} catch (IOException ex) {
log.debug("Successful response received, but response couldn't be read", ex);
throw new LorettaClientException("Request was successful but couldn't read response", ex);
}
} else if (response.statusCode() == 401) {
log.debug("Unauthorized response received");
throw new AuthenticationFailedException("Provided credential are invalid");
} else if (response.statusCode() == 404) {
log.warn("Request to {} failed (not found)", uri);
throw new LorettaClientException("API endpoint %s does not exist (not found)".formatted(uri));
} else {
try {
ApiError error = objectMapper.readValue(response.body(), ApiError.class);
log.debug("Error response received: Code={}, Message={}", response.statusCode(), error.getMessage());
if (Objects.isNull(error.getMessage()) && Objects.isNull(error.getCorrelationId())) {
throw new LorettaClientException("Request failed. Response code: " + response.statusCode());
}
throw new ApiErrorException(error.getMessage(), error.getCorrelationId());
} catch (IOException ex) {
log.debug("Error response received: Code={}", response.statusCode(), ex);
throw new LorettaClientException("Request failed. Response code: " + response.statusCode(), ex);
}
}
}
private void validateGufi(String gufi) {
if (!(gufiIsUuid(gufi) || gufiIsPrefixed(gufi))) {
throw new InvalidGufiException("Gufi '%s' is neither UUID nor prefixed with operator".formatted(gufi));
}
}
private boolean gufiIsUuid(String gufi) {
return RX_UUID.matcher(gufi.toLowerCase()).matches();
}
private boolean gufiIsPrefixed(String gufi) {
return gufi.substring(0, operatorGufiPrefix.length()).equalsIgnoreCase(operatorGufiPrefix);
}
private static String extractFlightPlanXml(byte[] eff) {
try {
Map<String, byte[]> effFiles = IOUtils.readZipArchive(eff);
byte[] innerArchive = effFiles.values()
.stream()
.filter(IOUtils::isZipArchive)
.findFirst()
.orElseThrow(() -> new LorettaClientException("Unable to find flightplan in eff"));
effFiles = IOUtils.readZipArchive(innerArchive);
for(var p : effFiles.entrySet()) {
var filename = p.getKey();
var content = p.getValue();
String xml;
try {
xml = new String(content);
Matcher matcher = RX_FLIGHTPLAN_ROOT.matcher(xml);
if (matcher.find()) {
log.debug("{} has flightplan marker", filename);
try {
Metadata.parse(xml);
log.debug("{} has been parsed successfully", filename);
return xml;
} catch (Throwable ex) {
log.warn("{} could not be parsed", filename, ex);
}
} else {
log.debug("{} has no flightplan marker", filename);
}
} catch (Throwable ignored) {
log.debug("{} is binary file", filename);
}
}
throw new LorettaClientException("Unable to find flightplan in eff");
} catch (IOException ex) {
throw new LorettaClientException("Unable to read eff", ex);
}
}
private static class UploadResponseImpl implements UploadResponse {
private final String message;
private final String gufi;
private UploadResponseImpl(String message, String gufi) {
this.message = message;
this.gufi = gufi;
}
@Override
public String getMessage() {
return message;
}
@Override
public String getGufi() {
return gufi;
}
}
}
|
0
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client/api
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client/api/arinc633/FlightPlan.java
|
package aero.loretta.client.api.arinc633;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import java.time.OffsetDateTime;
@JacksonXmlRootElement(namespace = "http://aeec.aviation-ia.net/633")
class FlightPlan {
@JsonProperty("M633Header")
private M633Header m633Header;
@JsonProperty("M633SupplementaryHeader")
private M633SupplementaryHeader m633SupplementaryHeader;
public M633Header getM633Header() {
return m633Header;
}
public FlightPlan setM633Header(M633Header m633Header) {
this.m633Header = m633Header;
return this;
}
public M633SupplementaryHeader getM633SupplementaryHeader() {
return m633SupplementaryHeader;
}
public FlightPlan setM633SupplementaryHeader(M633SupplementaryHeader m633SupplementaryHeader) {
this.m633SupplementaryHeader = m633SupplementaryHeader;
return this;
}
static class M633Header {
private Integer versionNumber;
public Integer getVersionNumber() {
return versionNumber;
}
public M633Header setVersionNumber(Integer versionNumber) {
this.versionNumber = versionNumber;
return this;
}
}
static class M633SupplementaryHeader {
@JsonProperty("Flight")
private M633SupplementaryHeader.Flight flight;
@JsonProperty("FlightKeyIdentifier")
private String flightKeyIdentifier;
public M633SupplementaryHeader.Flight getFlight() {
return flight;
}
public M633SupplementaryHeader setFlight(M633SupplementaryHeader.Flight flight) {
this.flight = flight;
return this;
}
public String getFlightKeyIdentifier() {
return flightKeyIdentifier;
}
public M633SupplementaryHeader setFlightKeyIdentifier(String flightKeyIdentifier) {
this.flightKeyIdentifier = flightKeyIdentifier;
return this;
}
static class Flight {
@JsonProperty("scheduledTimeOfDeparture")
private OffsetDateTime scheduledTimeOfDeparture;
@JsonProperty("FlightIdentification")
private M633SupplementaryHeader.Flight.FlightIdentification flightIdentification;
@JsonProperty("DepartureAirport")
private M633SupplementaryHeader.Flight.Airport departureAirport;
@JsonProperty("ArrivalAirport")
private M633SupplementaryHeader.Flight.Airport arrivalAirport;
public OffsetDateTime getScheduledTimeOfDeparture() {
return scheduledTimeOfDeparture;
}
public Flight setScheduledTimeOfDeparture(OffsetDateTime scheduledTimeOfDeparture) {
this.scheduledTimeOfDeparture = scheduledTimeOfDeparture;
return this;
}
public M633SupplementaryHeader.Flight.FlightIdentification getFlightIdentification() {
return flightIdentification;
}
public M633SupplementaryHeader.Flight setFlightIdentification(M633SupplementaryHeader.Flight.FlightIdentification flightIdentification) {
this.flightIdentification = flightIdentification;
return this;
}
public M633SupplementaryHeader.Flight.Airport getDepartureAirport() {
return departureAirport;
}
public M633SupplementaryHeader.Flight setDepartureAirport(M633SupplementaryHeader.Flight.Airport departureAirport) {
this.departureAirport = departureAirport;
return this;
}
public M633SupplementaryHeader.Flight.Airport getArrivalAirport() {
return arrivalAirport;
}
public M633SupplementaryHeader.Flight setArrivalAirport(M633SupplementaryHeader.Flight.Airport arrivalAirport) {
this.arrivalAirport = arrivalAirport;
return this;
}
static class FlightIdentification {
@JsonProperty("FlightIdentifier")
private String flightIdentifier;
public String getFlightIdentifier() {
return flightIdentifier;
}
public M633SupplementaryHeader.Flight.FlightIdentification setFlightIdentifier(String flightIdentifier) {
this.flightIdentifier = flightIdentifier;
return this;
}
}
static class Airport {
@JsonProperty("AirportICAOCode")
private String airportICAOCode;
public String getAirportICAOCode() {
return airportICAOCode;
}
public M633SupplementaryHeader.Flight.Airport setAirportICAOCode(String airportICAOCode) {
this.airportICAOCode = airportICAOCode;
return this;
}
}
}
}
}
|
0
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client/api
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client/api/arinc633/Metadata.java
|
package aero.loretta.client.api.arinc633;
import aero.loretta.client.exception.XmlParsingException;
import java.time.Instant;
import java.util.Optional;
public interface Metadata {
Optional<String> getGufi();
Instant getStd();
String getCallsign();
String getDeparture();
String getArrival();
static Metadata parse(String xml) throws XmlParsingException {
return new Parser().parse(xml);
}
class MetadataImpl implements Metadata {
private final String gufi;
private final Instant std;
private final String callsign;
private final String departure;
private final String arrival;
public MetadataImpl(String gufi, Instant std, String callsign, String departure, String arrival) {
this.gufi = gufi;
this.std = std;
this.callsign = callsign;
this.departure = departure;
this.arrival = arrival;
}
@Override
public Optional<String> getGufi() {
return Optional.ofNullable(gufi);
}
@Override
public Instant getStd() {
return std;
}
@Override
public String getCallsign() {
return callsign;
}
@Override
public String getDeparture() {
return departure;
}
@Override
public String getArrival() {
return arrival;
}
}
}
|
0
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client/api
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client/api/arinc633/Parser.java
|
package aero.loretta.client.api.arinc633;
import aero.loretta.client.exception.XmlParsingException;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.time.Instant;
import java.time.OffsetDateTime;
import java.util.Optional;
import java.util.concurrent.atomic.AtomicBoolean;
class Parser {
private static final int MAX_ARINC633_VERSION = 5;
private static final Logger log = LoggerFactory.getLogger(Parser.class);
private static final AtomicBoolean versionWarned = new AtomicBoolean(false);
private final XmlMapper objectMapper;
public Parser() {
this.objectMapper = new XmlMapper();
this.objectMapper.findAndRegisterModules();
this.objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
this.objectMapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
}
public Metadata parse(String xml) {
try {
FlightPlan flightPlan = objectMapper.readValue(xml, FlightPlan.class);
int version = Optional.ofNullable(flightPlan)
.map(FlightPlan::getM633Header)
.map(FlightPlan.M633Header::getVersionNumber)
.orElseThrow(() -> new XmlParsingException("VersionNumber is missing"));
if (version > MAX_ARINC633_VERSION) {
if (versionWarned.compareAndSet(false, true)) {
log.warn("Unexpected ARINC 633 version number {}. Is you library outdated?", version);
}
}
String gufi = Optional.ofNullable(flightPlan)
.map(FlightPlan::getM633SupplementaryHeader)
.map(FlightPlan.M633SupplementaryHeader::getFlightKeyIdentifier)
.orElse(null);
Instant std = Optional.ofNullable(flightPlan)
.map(FlightPlan::getM633SupplementaryHeader)
.map(FlightPlan.M633SupplementaryHeader::getFlight)
.map(FlightPlan.M633SupplementaryHeader.Flight::getScheduledTimeOfDeparture)
.map(OffsetDateTime::toInstant)
.orElseThrow(() -> new IllegalArgumentException("ScheduledTimeOfDeparture not found"));
String callsign = Optional.ofNullable(flightPlan)
.map(FlightPlan::getM633SupplementaryHeader)
.map(FlightPlan.M633SupplementaryHeader::getFlight)
.map(FlightPlan.M633SupplementaryHeader.Flight::getFlightIdentification)
.map(FlightPlan.M633SupplementaryHeader.Flight.FlightIdentification::getFlightIdentifier)
.orElseThrow(() -> new IllegalArgumentException("FlightIdentifier not found"));
String departure = Optional.ofNullable(flightPlan)
.map(FlightPlan::getM633SupplementaryHeader)
.map(FlightPlan.M633SupplementaryHeader::getFlight)
.map(FlightPlan.M633SupplementaryHeader.Flight::getDepartureAirport)
.map(FlightPlan.M633SupplementaryHeader.Flight.Airport::getAirportICAOCode)
.orElseThrow(() -> new IllegalArgumentException("DepartureAirport not found"));
String arrival = Optional.ofNullable(flightPlan)
.map(FlightPlan::getM633SupplementaryHeader)
.map(FlightPlan.M633SupplementaryHeader::getFlight)
.map(FlightPlan.M633SupplementaryHeader.Flight::getArrivalAirport)
.map(FlightPlan.M633SupplementaryHeader.Flight.Airport::getAirportICAOCode)
.orElseThrow(() -> new IllegalArgumentException("ArrivalAirport not found"));
return new Metadata.MetadataImpl(gufi, std, callsign, departure, arrival);
} catch (JsonProcessingException e) {
throw new XmlParsingException("Unable to parse flightplan", e);
}
}
}
|
0
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client/exception/ApiErrorException.java
|
package aero.loretta.client.exception;
import java.io.Serial;
public class ApiErrorException extends LorettaClientException {
@Serial
private static final long serialVersionUID = 2763960146557682043L;
private final String correlationId;
public ApiErrorException(String message, String correlationId) {
super(message);
this.correlationId = correlationId;
}
public ApiErrorException(String message, Throwable cause, String correlationId) {
super(message, cause);
this.correlationId = correlationId;
}
public ApiErrorException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, String correlationId) {
super(message, cause, enableSuppression, writableStackTrace);
this.correlationId = correlationId;
}
}
|
0
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client/exception/AuthenticationFailedException.java
|
package aero.loretta.client.exception;
import java.io.Serial;
public class AuthenticationFailedException extends LorettaClientException {
@Serial
private static final long serialVersionUID = 990652574037474280L;
public AuthenticationFailedException() {
}
public AuthenticationFailedException(String message) {
super(message);
}
public AuthenticationFailedException(String message, Throwable cause) {
super(message, cause);
}
public AuthenticationFailedException(Throwable cause) {
super(cause);
}
public AuthenticationFailedException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
}
|
0
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client/exception/InvalidGufiException.java
|
package aero.loretta.client.exception;
import java.io.Serial;
public class InvalidGufiException extends LorettaClientException {
@Serial
private static final long serialVersionUID = 4931672510288720047L;
public InvalidGufiException() {
}
public InvalidGufiException(String message) {
super(message);
}
public InvalidGufiException(String message, Throwable cause) {
super(message, cause);
}
public InvalidGufiException(Throwable cause) {
super(cause);
}
public InvalidGufiException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
}
|
0
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client/exception/LorettaClientException.java
|
package aero.loretta.client.exception;
import java.io.Serial;
public class LorettaClientException extends RuntimeException {
@Serial
private static final long serialVersionUID = 4585704452329243616L;
public LorettaClientException() {
}
public LorettaClientException(String message) {
super(message);
}
public LorettaClientException(String message, Throwable cause) {
super(message, cause);
}
public LorettaClientException(Throwable cause) {
super(cause);
}
public LorettaClientException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
}
|
0
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client
|
java-sources/aero/loretta/sdk-api-client/1.0.2/aero/loretta/client/exception/XmlParsingException.java
|
package aero.loretta.client.exception;
import java.io.Serial;
public class XmlParsingException extends LorettaClientException {
@Serial
private static final long serialVersionUID = -7226201216569164931L;
public XmlParsingException() {
}
public XmlParsingException(String message) {
super(message);
}
public XmlParsingException(String message, Throwable cause) {
super(message, cause);
}
public XmlParsingException(Throwable cause) {
super(cause);
}
public XmlParsingException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
}
|
0
|
java-sources/aero/m-click/mcpdf/0.2.10/aero/m_click
|
java-sources/aero/m-click/mcpdf/0.2.10/aero/m_click/mcpdf/Config.java
|
/**
* Mcpdf is a drop-in replacement for PDFtk.
*/
/*
* Copyright (C) 2014 Volker Grabsch <grabsch@m-click.aero>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* https://www.gnu.org/licenses/agpl-3.0.html
*/
package aero.m_click.mcpdf;
import java.io.InputStream;
import java.io.OutputStream;
public class Config
{
public InputStream pdfInputStream;
public OutputStream pdfOutputStream;
public InputStream formInputStream;
public String stampFilename;
public String backgroundFilename;
public boolean flatten;
}
|
0
|
java-sources/aero/m-click/mcpdf/0.2.10/aero/m_click
|
java-sources/aero/m-click/mcpdf/0.2.10/aero/m_click/mcpdf/Main.java
|
/**
* Mcpdf is a drop-in replacement for PDFtk.
*
* It fixes PDFtk's unicode issues when filling in PDF forms,
* and is essentially a command line interface for the iText
* PDF library with a PDFtk compatible syntax.
*/
/*
* Copyright (C) 2014 Volker Grabsch <grabsch@m-click.aero>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* https://www.gnu.org/licenses/agpl-3.0.html
*/
package aero.m_click.mcpdf;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.pdf.PdfContentByte;
import com.itextpdf.text.pdf.PdfImportedPage;
import com.itextpdf.text.pdf.PdfReader;
import com.itextpdf.text.pdf.PdfStamper;
import com.itextpdf.text.pdf.XfdfReader;
public class Main
{
public static void main(String[] args)
{
try {
execute(parseArgs(args));
} catch (Exception e) {
System.err.println(e);
System.err.println("See README for more information.");
System.exit(1);
}
}
public static Config parseArgs(String[] args)
throws FileNotFoundException
{
if (args.length == 0) {
throw new RuntimeException("Missing arguments.");
}
Config config = new Config();
config.pdfInputStream = new FileInputStream(args[0]);
config.pdfOutputStream = System.out;
config.formInputStream = null;
config.stampFilename = "";
config.backgroundFilename = "";
config.flatten = false;
for (int i = 1; i < args.length; i++) {
if ("stamp".equals(args[i])) {
i++;
config.stampFilename = args[i];
} else if ("background".equals(args[i])) {
i++;
config.backgroundFilename = args[i];
} else if ("fill_form".equals(args[i])) {
config.formInputStream = System.in;
i++;
if (!"-".equals(args[i])) {
throw new RuntimeException("Missing \"-\" after fill_form operation.");
}
} else if ("output".equals(args[i])) {
i++;
if (!"-".equals(args[i])) {
throw new RuntimeException("Missing \"-\" after output operation.");
}
} else if ("flatten".equals(args[i])) {
config.flatten = true;
} else {
throw new RuntimeException("Unknown operation: " + args[i]);
}
}
return config;
}
public static void execute(Config config)
throws IOException, DocumentException
{
PdfReader reader = new PdfReader(config.pdfInputStream);
PdfStamper stamper = new PdfStamper(reader, config.pdfOutputStream, '\0');
if (!config.stampFilename.isEmpty()) {
stampBackground(reader, stamper, config.stampFilename, true);
}
if (!config.backgroundFilename.isEmpty()) {
stampBackground(reader, stamper, config.backgroundFilename, false);
}
if (config.formInputStream != null) {
stamper.getAcroFields().setFields(new XfdfReader(config.formInputStream));
}
stamper.setFormFlattening(config.flatten);
stamper.close();
}
public static void stampBackground(PdfReader reader, PdfStamper stamper, String signature, boolean isStamp)
throws IOException, DocumentException
{
int num_pages = reader.getNumberOfPages();
PdfReader r = new PdfReader(signature);
PdfImportedPage page = stamper.getImportedPage(r, 1);
for (int i = 1; i <= num_pages; i++) {
PdfContentByte canvas = isStamp ? stamper.getOverContent(i) : stamper.getUnderContent(i);
canvas.addTemplate(page, 0, 0);
}
stamper.getWriter().freeReader(r);
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/Acas.java
|
package aero.t2s.modes;
import aero.t2s.modes.constants.*;
public class Acas {
private VerticalStatus verticalStatus = VerticalStatus.AIRBORNE;
private CrossLinkCapability crossLinkCapability = CrossLinkCapability.UNSUPPORTED;
private AcasSensitivity sensitivity = AcasSensitivity.INOP;
private AcasReplyInformation replyInformation = AcasReplyInformation.NO_OPERATING_ACAS;
private Altitude altitude = new Altitude();
private ResolutionAdvisory resolutionAdvisory = new ResolutionAdvisory();
private boolean multipleThreats;
private boolean RANotPassBelow;
private boolean RANotPassAbove;
private boolean RANotTurnLeft;
private boolean RANotTurnRight;
private boolean active;
private ThreatTypeIndicator threatType = ThreatTypeIndicator.NO_ID;
private String targetModeS;
private double targetAltitude;
private double targetRange;
private int targetBearing;
public void setVerticalStatus(VerticalStatus verticalStatus) {
this.verticalStatus = verticalStatus;
}
public VerticalStatus getVerticalStatus() {
return verticalStatus;
}
public void setCrossLinkCapability(CrossLinkCapability crossLinkCapability) {
this.crossLinkCapability = crossLinkCapability;
}
public CrossLinkCapability getCrossLinkCapability() {
return crossLinkCapability;
}
public void setSensitivity(AcasSensitivity sensitivity) {
this.sensitivity = sensitivity;
}
public AcasSensitivity getSensitivity() {
return sensitivity;
}
public void setReplyInformation(AcasReplyInformation replyInformation) {
this.replyInformation = replyInformation;
}
public AcasReplyInformation getReplyInformation() {
return replyInformation;
}
public void setAltitude(Altitude altitude) {
this.altitude = altitude;
}
public Altitude getAltitude() {
return altitude;
}
public void setMultipleThreats(boolean multipleThreats) {
this.multipleThreats = multipleThreats;
}
public boolean getMultipleThreats() {
return multipleThreats;
}
public void setRANotPassBelow(boolean RANotPassBelow) {
this.RANotPassBelow = RANotPassBelow;
}
public boolean getRANotPassBelow() {
return RANotPassBelow;
}
public void setRANotPassAbove(boolean raPassAbove) {
this.RANotPassAbove = raPassAbove;
}
public boolean getRANotPassAbove() {
return RANotPassAbove;
}
public void setRANotTurnLeft(boolean RANotTurnLeft) {
this.RANotTurnLeft = RANotTurnLeft;
}
public boolean getRANotTurnLeft() {
return RANotTurnLeft;
}
public void setRANotTurnRight(boolean RANotTurnRight) {
this.RANotTurnRight = RANotTurnRight;
}
public boolean getRANotTurnRight() {
return RANotTurnRight;
}
public ResolutionAdvisory getResolutionAdvisory() {
return resolutionAdvisory;
}
public void setActive(boolean active) {
this.active = active;
}
public boolean getActive() {
return active;
}
public void setThreatType(ThreatTypeIndicator threatType) {
this.threatType = threatType;
}
public ThreatTypeIndicator getThreatType() {
return threatType;
}
public void setTargetModeS(String targetModeS) {
this.targetModeS = targetModeS;
}
public String getTargetModeS() {
return targetModeS;
}
public void setTargetAltitude(double targetAltitude) {
this.targetAltitude = targetAltitude;
}
public double getTargetAltitude() {
return targetAltitude;
}
public void setTargetRange(double targetRange) {
this.targetRange = targetRange;
}
public double getTargetRange() {
return targetRange;
}
public void setTargetBearing(int targetBearing) {
this.targetBearing = targetBearing;
}
public int getTargetBearing() {
return targetBearing;
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/Altitude.java
|
package aero.t2s.modes;
public class Altitude {
private double altitude;
private boolean isMetric;
private int step;
private boolean isValid;
public Altitude(double altitude, boolean isMetric, int step) {
this.altitude = altitude;
this.isMetric = isMetric;
this.step = step;
this.isValid = true;
}
public Altitude() {
this.isValid = false;
}
public double getAltitude() {
return altitude;
}
public boolean isMetric() {
return isMetric;
}
public int getStep() {
return step;
}
public boolean isValid() {
return isValid;
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/BinaryHelper.java
|
package aero.t2s.modes;
import org.slf4j.LoggerFactory;
public class BinaryHelper {
/**
* @param input String representation of mode-s input (e.g. 8D4840D6202CC371C32CE0576098)
* @return byte array representation.
*/
public static short[] stringToByteArray(String input)
{
short[] data = new short[input.length() / 2];
for (int index = 0; index < input.length() / 2; index++) {
data[index] = Short.parseShort(input.substring(index * 2, (index * 2) + 2), 16);
}
return data;
}
public static void printMessageAsBinaryMessage(short[] data)
{
StringBuilder sb = new StringBuilder();
printLine(sb, 32);
for (int i = 0; i < 4; i++) {
sb.append("|");
for (int j = 7; j >= 0; j--) {
sb.append(String.format(" %2d ", (i + 1) * 8 - j));
}
}
printLine(sb, 32);
for(int i = 0; i < 4; i++) {
sb.append("|");
for (int j = 7; j >= 0; j--) {
sb.append(String.format(" %2d ", (data[i] >>> j) & 0x1));
}
}
printLine(sb, 32);
// Message Field
sb.append("\nMB Field");
printLine(sb, 56);
for(int i = 4; i<= 10; i++) {
sb.append("|");
for (int j = 7; j >= 0; j--) {
sb.append(String.format(" %2d ", (i-3) * 8 - j));
}
}
sb.append("|");
printLine(sb, 56);
for(int i = 4; i<= 10; i++) {
sb.append("|");
for (int j = 7; j >= 0; j--) {
sb.append(String.format(" %2d ", (data[i] >>> j) & 0x1));
}
}
sb.append("|");
printLine(sb, 56);
System.out.println(sb.toString());
LoggerFactory.getLogger(BinaryHelper.class).debug(sb.toString());
}
private static void printLine(StringBuilder sb, int bits) {
sb.append("\n");
for (int i = 0; i < bits / 8; i++) {
sb.append("-");
for (int j = 0; j < 8; j++) {
sb.append("----");
}
}
sb.append("-\n");
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/CapabilityReport.java
|
package aero.t2s.modes;
import aero.t2s.modes.decoder.df.bds.Bds17;
public class CapabilityReport {
boolean isAvailable = false;
boolean bds05 = true;
boolean bds06 = true;
boolean bds07 = true;
boolean bds08 = true;
boolean bds09 = true;
boolean bds0A = false;
boolean bds20 = true;
boolean bds21 = true;
boolean bds40 = true;
boolean bds41 = false;
boolean bds42 = false;
boolean bds43 = false;
boolean bds44 = false;
boolean bds45 = false;
boolean bds48 = false;
boolean bds50 = false;
boolean bds51 = false;
boolean bds52 = false;
boolean bds53 = false;
boolean bds54 = false;
boolean bds55 = false;
boolean bds56 = false;
boolean bds5F = false;
boolean bds60 = false;
public void update(short[] data) {
isAvailable = true;
bds05 = (data[4] & 0b10000000) != 0;
bds06 = (data[4] & 0b01000000) != 0;
bds07 = (data[4] & 0b00100000) != 0;
bds08 = (data[4] & 0b00010000) != 0;
bds09 = (data[4] & 0b00001000) != 0;
bds0A = (data[4] & 0b00000100) != 0;
bds20 = (data[4] & 0b00000010) != 0;
bds21 = (data[4] & 0b00000001) != 0;
bds40 = (data[5] & 0b10000000) != 0;
bds41 = (data[5] & 0b01000000) != 0;
bds42 = (data[5] & 0b00100000) != 0;
bds43 = (data[5] & 0b00010000) != 0;
bds44 = (data[5] & 0b00001000) != 0;
bds45 = (data[5] & 0b00000100) != 0;
bds48 = (data[5] & 0b00000010) != 0;
bds50 = (data[5] & 0b00000001) != 0;
bds51 = (data[6] & 0b10000000) != 0;
bds52 = (data[6] & 0b01000000) != 0;
bds53 = (data[6] & 0b00100000) != 0;
bds54 = (data[6] & 0b00010000) != 0;
bds55 = (data[6] & 0b00001000) != 0;
bds56 = (data[6] & 0b00000100) != 0;
bds5F = (data[6] & 0b00000010) != 0;
bds60 = (data[6] & 0b00000001) != 0;
}
public void update(Bds17 bds17) {
this.bds05 = bds17.isBds05();
this.bds06 = bds17.isBds06();
this.bds07 = bds17.isBds07();
this.bds08 = bds17.isBds08();
this.bds09 = bds17.isBds09();
this.bds0A = bds17.isBds0A();
this.bds20 = bds17.isBds20();
this.bds21 = bds17.isBds21();
this.bds40 = bds17.isBds40();
this.bds41 = bds17.isBds41();
this.bds42 = bds17.isBds42();
this.bds43 = bds17.isBds43();
this.bds44 = bds17.isBds44();
this.bds45 = bds17.isBds45();
this.bds48 = bds17.isBds48();
this.bds50 = bds17.isBds50();
this.bds51 = bds17.isBds51();
this.bds52 = bds17.isBds52();
this.bds53 = bds17.isBds53();
this.bds54 = bds17.isBds54();
this.bds55 = bds17.isBds55();
this.bds56 = bds17.isBds56();
this.bds5F = bds17.isBds5F();
this.bds60 = bds17.isBds60();
}
public boolean isAvailable() {
return isAvailable;
}
public boolean isBds05() {
return bds05;
}
public boolean isBds06() {
return bds06;
}
public boolean isBds07() {
return bds07;
}
public boolean isBds08() {
return bds08;
}
public boolean isBds09() {
return bds09;
}
public boolean isBds0A() {
return bds0A;
}
public boolean isBds20() {
return bds20;
}
public boolean isBds21() {
return bds21;
}
public boolean isBds40() {
return bds40;
}
public boolean isBds41() {
return bds41;
}
public boolean isBds42() {
return bds42;
}
public boolean isBds43() {
return bds43;
}
public boolean isBds44() {
return bds44;
}
public boolean isBds45() {
return bds45;
}
public boolean isBds48() {
return bds48;
}
public boolean isBds50() {
return bds50;
}
public boolean isBds51() {
return bds51;
}
public boolean isBds52() {
return bds52;
}
public boolean isBds53() {
return bds53;
}
public boolean isBds54() {
return bds54;
}
public boolean isBds55() {
return bds55;
}
public boolean isBds56() {
return bds56;
}
public boolean isBds5F() {
return bds5F;
}
public boolean isBds60() {
return bds60;
}
public void all() {
bds05 = true;
bds06 = true;
bds07 = true;
bds08 = true;
bds09 = true;
bds0A = true;
bds20 = true;
bds21 = true;
bds40 = true;
bds41 = true;
bds42 = true;
bds43 = true;
bds44 = true;
bds45 = true;
bds48 = true;
bds50 = true;
bds51 = true;
bds52 = true;
bds53 = true;
bds54 = true;
bds55 = true;
bds56 = true;
bds5F = true;
bds60 = true;
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/CprPosition.java
|
package aero.t2s.modes;
public class CprPosition {
private double lat;
private double lon;
private int time;
public void setLat(double lat) {
this.lat = lat;
}
public double getLat() {
return lat;
}
public void setLon(double lon) {
this.lon = lon;
}
public double getLon() {
return lon;
}
public void setTime(int time) {
this.time = time;
}
public int getTime() {
return time;
}
public boolean isValid() {
return lat != 0d && lon != 0;
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/DownlinkException.java
|
package aero.t2s.modes;
public interface DownlinkException {
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/EmptyMessageException.java
|
package aero.t2s.modes;
public class EmptyMessageException extends Exception implements DownlinkException {
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/FlightStatus.java
|
package aero.t2s.modes;
public class FlightStatus {
private boolean alert;
private boolean spi;
public void setAlert(boolean alert) {
this.alert = alert;
}
public boolean isAlert() {
return alert;
}
public void setSpi(boolean spi) {
this.spi = spi;
}
public boolean isSpi() {
return spi;
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/Meteo.java
|
package aero.t2s.modes;
import aero.t2s.modes.constants.Hazard;
public class Meteo {
private Hazard turbulence = Hazard.NIL;
private Hazard windShear = Hazard.NIL;
private Hazard microBurst = Hazard.NIL;
private Hazard icing = Hazard.NIL;
private Hazard wake = Hazard.NIL;
private double staticAirTemperature = 0;
private int averageStaticPressure = 0;
private int radioHeight = 0;
private double humidity = 0;
private int windSpeed = 0;
private double windDirection = 0;
public Hazard getTurbulence() {
return turbulence;
}
public Meteo setTurbulence(Hazard turbulence) {
this.turbulence = turbulence;
return this;
}
public Hazard getWindShear() {
return windShear;
}
public Meteo setWindShear(Hazard windShear) {
this.windShear = windShear;
return this;
}
public Hazard getMicroBurst() {
return microBurst;
}
public Meteo setMicroBurst(Hazard microBurst) {
this.microBurst = microBurst;
return this;
}
public Hazard getIcing() {
return icing;
}
public Meteo setIcing(Hazard icing) {
this.icing = icing;
return this;
}
public Hazard getWake() {
return wake;
}
public Meteo setWake(Hazard wake) {
this.wake = wake;
return this;
}
public double getStaticAirTemperature() {
return staticAirTemperature;
}
public Meteo setStaticAirTemperature(double staticAirTemperature) {
this.staticAirTemperature = staticAirTemperature;
return this;
}
public int getAverageStaticPressure() {
return averageStaticPressure;
}
public Meteo setAverageStaticPressure(int averageStaticPressure) {
this.averageStaticPressure = averageStaticPressure;
return this;
}
public int getRadioHeight() {
return radioHeight;
}
public Meteo setRadioHeight(int radioHeight) {
this.radioHeight = radioHeight;
return this;
}
public double getHumidity() {
return humidity;
}
public Meteo setHumidity(double humidity) {
this.humidity = humidity;
return this;
}
public int getWindSpeed() {
return windSpeed;
}
public Meteo setWindSpeed(int windSpeed) {
this.windSpeed = windSpeed;
return this;
}
public double getWindDirection() {
return windDirection;
}
public Meteo setWindDirection(double windDirection) {
this.windDirection = windDirection;
return this;
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/ModeAcMessageException.java
|
package aero.t2s.modes;
public class ModeAcMessageException extends Exception implements DownlinkException {
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/ModeS.java
|
package aero.t2s.modes;
import aero.t2s.modes.database.ModeSDatabase;
import aero.t2s.modes.decoder.df.DownlinkFormat;
import java.net.InetSocketAddress;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Consumer;
public class ModeS {
private final ModeSListener listener;
private final Map<String, Track> tracks = new ConcurrentHashMap<>();
private final ModeSHandler handler;
private Consumer<Track> onTrackDeleted = (track) -> {};
private Consumer<Track> onTrackUpdated = (track) -> {};
private Consumer<Track> onTrackCreated = (track) -> {};
private Consumer<DownlinkFormat> onMessage;
public ModeS(String host, int port, double originLat, double originLon) {
this(host, port, originLat, originLon, null);
}
public ModeS(String host, int port, double originLat, double originLon, ModeSDatabase database) {
handler = new ModeSTrackHandler(tracks, originLat, originLon, database);
handler.onTrackCreated(onTrackCreated);
handler.onTrackCreated(onTrackUpdated);
handler.onTrackCreated(onTrackDeleted);
handler.onMessage(onMessage);
listener = new ModeSListener(new InetSocketAddress(host, port), handler);
}
public ModeS(String host, int port, ModeSHandler handler) {
this.handler = handler;
listener = new ModeSListener(new InetSocketAddress(host, port), handler);
}
public void onTrackDeleted(Consumer<Track> consumer) {
handler.onTrackDeleted(consumer);
}
public void onTrackCreated(Consumer<Track> consumer) {
handler.onTrackCreated(consumer);
}
public void onTrackUpdated(Consumer<Track> consumer) {
handler.onTrackUpdated(consumer);
}
public void onMessage(Consumer<DownlinkFormat> consumer) {
handler.onMessage(consumer);
}
public void start() {
this.handler.start();
this.listener.start();
}
public void stop() {
this.listener.interrupt();
this.handler.stop();
}
public Map<String, Track> getTracks() {
return tracks;
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/ModeSHandler.java
|
package aero.t2s.modes;
import aero.t2s.modes.decoder.df.DownlinkFormat;
import java.util.function.Consumer;
abstract public class ModeSHandler {
protected Consumer<Track> onDeleted = track -> {};
protected Consumer<Track> onCreated = track -> {};
protected Consumer<Track> onUpdated = track -> {};
protected Consumer<DownlinkFormat> onMessage;
public void onTrackDeleted(Consumer<Track> onDeleted) {
this.onDeleted = onDeleted;
}
public void onTrackUpdated(Consumer<Track> onUpdated) {
this.onUpdated = onUpdated;
}
public void onTrackCreated(Consumer<Track> onCreated) {
this.onCreated = onCreated;
}
public void onMessage(Consumer<DownlinkFormat> onMessage) {
this.onMessage = onMessage;
}
public abstract void handle(String data);
public abstract DownlinkFormat handleSync(String data);
protected short[] toData(final String input) throws EmptyMessageException, ModeAcMessageException {
if(input.length() == 6) {
// example mode A/C: *21D2; *0200; *0101;
throw new ModeAcMessageException();
}
if (input.startsWith("*0000")) {
throw new EmptyMessageException();
}
String hex = input.replace("*", "").replace(";", "");
return BinaryHelper.stringToByteArray(hex);
}
public void start() {
}
public void stop() {
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/ModeSListener.java
|
package aero.t2s.modes;
import org.slf4j.LoggerFactory;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.InetSocketAddress;
import java.nio.channels.ClosedChannelException;
import java.nio.channels.SocketChannel;
class ModeSListener extends Thread {
private final InetSocketAddress address;
private final ModeSHandler handler;
private int attempts;
private boolean running = true;
public ModeSListener(InetSocketAddress address, ModeSHandler handler) {
super("Mode S Listener");
this.address = address;
this.handler = handler;
}
@Override
public void run() {
while (!isInterrupted() && running) {
try (SocketChannel socketChannel = SocketChannel.open()) {
attempts++;
LoggerFactory.getLogger(getClass()).info("[ModeSListener] Connecting to {}", address.toString());
socketChannel.connect(address);
BufferedReader is = new BufferedReader(new InputStreamReader(socketChannel.socket().getInputStream()));
String hex;
attempts = 0;
while (!isInterrupted()) {
hex = is.readLine();
handler.handle(hex);
}
} catch (IOException e) {
e.printStackTrace();
if (attempts == 5 || isInterrupted()) {
LoggerFactory.getLogger(getClass()).info("[ModeSListener] Disconnecting");
running = false;
}
}
}
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/ModeSMessageHandler.java
|
package aero.t2s.modes;
import aero.t2s.modes.database.ModeSDatabase;
import aero.t2s.modes.decoder.Decoder;
import aero.t2s.modes.decoder.UnknownDownlinkFormatException;
import aero.t2s.modes.decoder.df.DownlinkFormat;
import aero.t2s.modes.decoder.df.df17.InvalidExtendedSquitterTypeCodeException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.*;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import java.util.function.Consumer;
public class ModeSMessageHandler extends ModeSHandler {
private static final Logger LOGGER = LoggerFactory.getLogger(ModeSMessageHandler.class);
private final Decoder decoder;
private final Executor executor = Executors.newSingleThreadExecutor();
private Consumer<DownlinkFormat> onMessage;
public ModeSMessageHandler(double originLat, double originLon) {
this.decoder = new Decoder(new HashMap<>(), originLat, originLon, ModeSDatabase.createDatabase());
}
public void handle(final String input) {
executor.execute(() -> handleSync(input));
}
public DownlinkFormat handleSync(final String input) {
try {
DownlinkFormat df = decoder.decode(toData(input));
if (onMessage != null) {
onMessage.accept(df);
}
return df;
} catch (ModeAcMessageException | EmptyMessageException ignored) {
} catch (InvalidExtendedSquitterTypeCodeException | UnknownDownlinkFormatException e) {
LOGGER.error(e.getMessage());
} catch (Throwable throwable) {
LOGGER.error("Message could not be parsed", throwable);
}
return null;
}
public void onMessage(Consumer<DownlinkFormat> onMessage) {
this.onMessage = onMessage;
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/ModeSTrackHandler.java
|
package aero.t2s.modes;
import aero.t2s.modes.database.ModeSDatabase;
import aero.t2s.modes.decoder.Decoder;
import aero.t2s.modes.decoder.UnknownDownlinkFormatException;
import aero.t2s.modes.decoder.df.DownlinkFormat;
import aero.t2s.modes.decoder.df.df17.InvalidExtendedSquitterTypeCodeException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.*;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
public class ModeSTrackHandler extends ModeSHandler {
private static final Logger LOGGER = LoggerFactory.getLogger(ModeSTrackHandler.class);
private final Decoder decoder;
private final Executor executor = Executors.newSingleThreadExecutor();
private final Map<String, Track> tracks;
private boolean cleanupEnabled = true;
private final Timer timer;
public ModeSTrackHandler(Map<String, Track> tracks, double originLat, double originLon, ModeSDatabase database) {
this.tracks = tracks;
this.decoder = new Decoder(tracks, originLat, originLon, database);
timer = new Timer();
}
@Override
public void start() {
timer.scheduleAtFixedRate(new TimerTask() {
@Override
public void run() {
if (!cleanupEnabled) {
return;
}
List<String> expired = new ArrayList<>();
tracks.values().stream().filter(Track::isExpired).forEach((track) -> expired.add(track.getIcao()));
expired.forEach((icao) -> onDeleted.accept(tracks.remove(icao)));
}
}, 1000, 5000);
}
@Override
public void stop() {
timer.cancel();
}
public void handle(final String input) {
executor.execute(() -> handleSync(input));
}
public DownlinkFormat handleSync(final String input) {
try {
DownlinkFormat df = decoder.decode(toData(input));
if(df == null) {
// invalid packet (Mode A/C like *21D2; *0200; *0101;)
LOGGER.debug("DF Message could not be parsed: [{}]", input);
return null;
}
Track track = decoder.getTrack(df.getIcao());
if (track == null) {
return null;
}
df.apply(track);
track.touch();
if (track.wasJustCreated()) {
this.onCreated.accept(track);
} else {
this.onUpdated.accept(track);
}
if (onMessage != null) {
onMessage.accept(df);
}
return df;
} catch (ModeAcMessageException | EmptyMessageException ignored) {
} catch (InvalidExtendedSquitterTypeCodeException | UnknownDownlinkFormatException e) {
LOGGER.error(e.getMessage());
} catch (Throwable throwable) {
LOGGER.error("DF Message could not be parsed: [" + input + "]", throwable);
}
return null;
}
public void enableCleanup() {
this.cleanupEnabled = true;
}
public void disableCleanup() {
this.cleanupEnabled = false;
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/NotImplementedException.java
|
package aero.t2s.modes;
public class NotImplementedException extends RuntimeException implements DownlinkException {
public NotImplementedException(String message) {
super(message);
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/RadiusLimit.java
|
package aero.t2s.modes;
public class RadiusLimit {
private final Track track;
private double radiusLimitMetres;
private boolean isUnknown;
public RadiusLimit(Track track) {
this.track = track;
}
public void determine() {
radiusLimitMetres = 0;
isUnknown = false;
// Surface Position
if (track.isGroundBit()) {
determineSurface();
return;
}
determineAirborne();
}
private void determineAirborne() {
if (track.getNIC() == 11 && track.getNICa() == 0 && track.getNICb() == 0) {
radiusLimitMetres = 7.5;
} else if (track.getNIC() == 10 && track.getNICa() == 0 && track.getNICb() == 0) {
radiusLimitMetres = 25;
} else if (track.getNIC() == 9 && track.getNICa() == 0 && track.getNICb() == 0) {
radiusLimitMetres = 42;
} else if (track.getNIC() == 8 && track.getNICa() == 1 && track.getNICb() == 1) {
radiusLimitMetres = 185.2;
} else if (track.getNIC() == 7 && track.getNICa() == 0 && track.getNICb() == 0) {
radiusLimitMetres = 370.4;
} else if (track.getNIC() == 6 && track.getNICa() == 0 && track.getNICb() == 1) {
radiusLimitMetres = 555.6;
} else if (track.getNIC() == 6 && track.getNICa() == 0 && track.getNICb() == 0) {
radiusLimitMetres = 926;
} else if (track.getNIC() == 6 && track.getNICa() == 1 && track.getNICb() == 1) {
radiusLimitMetres = 1111.2;
} else if (track.getNIC() == 5 && track.getNICa() == 0 && track.getNICb() == 0) {
radiusLimitMetres = 1852;
} else if (track.getNIC() == 4 && track.getNICa() == 0 && track.getNICb() == 0) {
radiusLimitMetres = 3704;
} else if (track.getNIC() == 3 && track.getNICa() == 1 && track.getNICb() == 1) {
radiusLimitMetres = 7408;
} else if (track.getNIC() == 2 && track.getNICa() == 0 && track.getNICb() == 0) {
radiusLimitMetres = 14816;
} else if (track.getNIC() == 1 && track.getNICa() == 0 && track.getNICb() == 0) {
radiusLimitMetres = 37040;
} else if (track.getNIC() == 0 && track.getNICa() == 0 && track.getNICb() == 0) {
isUnknown = true;
} else {
isUnknown = true;
}
}
private void determineSurface() {
if (track.getNIC() == 11 && track.getNICa() == 0 && track.getNICc() == 0) {
radiusLimitMetres = 7.5;
} else if (track.getNIC() == 10 && track.getNICa() == 0 && track.getNICc() == 0) {
radiusLimitMetres = 25;
} else if (track.getNIC() == 9 && track.getNICa() == 1 && track.getNICc() == 0) {
radiusLimitMetres = 75;
} else if (track.getNIC() == 8 && track.getNICa() == 0 && track.getNICc() == 0) {
radiusLimitMetres = 185.2;
} else if (track.getNIC() == 7 && track.getNICa() == 1 && track.getNICc() == 1) {
radiusLimitMetres = 370.4;
} else if (track.getNIC() == 6 && track.getNICa() == 1 && track.getNICc() == 0) {
radiusLimitMetres = 555.6;
} else if (track.getNIC() == 6 && track.getNICa() == 0 && track.getNICc() == 1) {
radiusLimitMetres = 1111.2;
} else if (track.getNIC() == 0 && track.getNICa() == 0 && track.getNICc() == 0) {
isUnknown = true;
} else {
isUnknown = true;
}
}
public boolean isUnknown() {
return isUnknown;
}
public double getRadiusLimitMetres() {
return radiusLimitMetres;
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/Track.java
|
package aero.t2s.modes;
import aero.t2s.modes.constants.*;
import java.time.Instant;
public class Track {
private String icao;
private String callsign;
private int category;
private boolean groundBit;
private int baroAltitude;
private int gnssHeight;
private double lat;
private double lon;
private CprPosition cprPositionEven = new CprPosition();
private CprPosition cprPositionOdd = new CprPosition();
Instant updated = Instant.now();
private boolean singleAntenna;
private int NIC;
private int NICb;
private int NICa;
private int NICc;
private RadiusLimit rc = new RadiusLimit(this);
private int NACv;
private NavigationAccuracyCategoryPosition NACp = NavigationAccuracyCategoryPosition.UNKNOWN;
private boolean spi;
private boolean tempAlert;
private boolean emergency;
private Version version = Version.VERSION0;
private Acas acas = new Acas();
private FlightStatus flightStatus = new FlightStatus();
private Altitude altitude = new Altitude();
private SelectedAltitudeSource selectedAltitudeSource = SelectedAltitudeSource.UNKNOWN;
private Meteo meteo = new Meteo();
private CapabilityReport capabilityReport = new CapabilityReport();
private int modeA;
private int geometricHeightOffset;
private int rocd;
private boolean rocdAvailable;
private boolean rocdSourceBaro;
private int vx;
private int vy;
private double gs;
private boolean headingSourceMagnetic;
private double magneticHeading;
private double trueHeading;
private boolean iasAvailable;
private int ias;
private double tas;
private boolean selectedAltitudeManagedFms;
private boolean selectedAltitudeManagedMcp;
private int selectedAltitude;
private double baroSetting;
private double selectedHeading;
private int sil;
private boolean autopilot;
private boolean vnav;
private boolean altitudeHold;
private boolean approachMode;
private boolean lnav;
private LengthWidthCode lengthWidthCode = LengthWidthCode.CAT15;
private EmergencyState emergencyState = EmergencyState.NONE;
private int fmsSelectedAltitude;
private double rollAngle;
private double trackAngleRate;
private double mach;
private double baroRocd;
private String atype = "";
private String wtc = "";
private String registration;
private String operator;
private boolean wasJustCreated = true;
public Track(String icao) {
this.icao = icao;
}
public void setCallsign(String callsign) {
this.callsign = callsign;
}
public String getCallsign() {
return callsign;
}
public void setCategory(int category) {
this.category = category;
}
public String getIcao() {
return icao;
}
public boolean isExpired() {
return Instant.now().minusSeconds(15).isAfter(updated);
}
public Instant getUpdatedAt() {
return updated;
}
public void setUpdatedAt(Instant time) {
this.updated = time;
}
public void touch() {
updated = Instant.now();
}
public void setGroundBit(boolean groundBit) {
this.groundBit = groundBit;
}
public boolean isGroundBit() {
return groundBit;
}
public void setBaroAltitude(int baroAltitude) {
this.baroAltitude = baroAltitude;
}
public int getBaroAltitude() {
return baroAltitude;
}
public int getGnssHeight() {
return gnssHeight;
}
public Track setGnssHeight(int gnssHeight) {
this.gnssHeight = gnssHeight;
return this;
}
public CprPosition getCprPosition(boolean cprEven) {
return cprEven ? cprPositionEven : cprPositionOdd;
}
public void setLat(double lat) {
this.lat = lat;
}
public double getLat() {
return lat;
}
public void setLon(double lon) {
this.lon = lon;
}
public double getLon() {
return lon;
}
public void setSingleAntenna(boolean singleAntenna) {
this.singleAntenna = singleAntenna;
}
public boolean getSingleAntenna() {
return singleAntenna;
}
public Version getVersion() {
return version;
}
public void setVersion(Version version) {
this.version = version;
}
public int getNIC() {
return NIC;
}
public int getNICa() {
return NICa;
}
public int getNICb() {
return NICb;
}
public int getNICc() {
return NICc;
}
public void setNIC(int NIC) {
if (this.NIC != NIC) {
this.NIC = NIC;
rc.determine();
}
}
public void setNICa(int NICa) {
if (this.NICa != NICa) {
this.NICa = NICa;
rc.determine();
}
}
public void setNICb(int niCb) {
if (niCb != this.NICb) {
this.NICb = niCb;
rc.determine();
}
}
public void setNICc(int NICc) {
if (this.NICc != NICc) {
this.NICc = NICc;
rc.determine();
}
}
public NavigationAccuracyCategoryPosition getNACp() {
return NACp;
}
public Track setNACp(NavigationAccuracyCategoryPosition NACp) {
this.NACp = NACp;
return this;
}
public void setSpi(boolean spi) {
this.spi = spi;
}
public boolean getSpi() {
return spi;
}
public void setTempAlert(boolean tempAlert) {
this.tempAlert = tempAlert;
}
public boolean getTempAlert() {
return tempAlert;
}
public void setEmergency(boolean emergency) {
this.emergency = emergency;
}
public boolean getEmergency() {
return emergency;
}
public Acas getAcas() {
return acas;
}
public FlightStatus getFlightStatus() {
return flightStatus;
}
public void setAltitude(Altitude altitude) {
this.altitude = altitude;
}
public Altitude getAltitude() {
return altitude;
}
public void setModeA(int modeA) {
this.modeA = modeA;
}
public int getModeA() {
return modeA;
}
public boolean isPositionAvailable() {
return lat != 0 & lon != 0;
}
public void setNACv(int naCv) {
this.NACv = naCv;
}
public int getNACv() {
return NACv;
}
public void setGeometricHeightOffset(int geometricHeightOffset) {
this.geometricHeightOffset = geometricHeightOffset;
}
public int getGeometricHeightOffset() {
return geometricHeightOffset;
}
public void setRocd(int rocd) {
this.rocd = rocd;
}
public int getRocd() {
return rocd;
}
public void setRocdAvailable(boolean rocdAvailable) {
this.rocdAvailable = rocdAvailable;
}
public boolean getRocdAvailable() {
return rocdAvailable;
}
public void setRocdSourceBaro(boolean rocdSourceBaro) {
this.rocdSourceBaro = rocdSourceBaro;
}
public boolean getRocdSourceBaro() {
return rocdSourceBaro;
}
public void setVx(int vx) {
this.vx = vx;
}
public int getVx() {
return vx;
}
public void setVy(int vy) {
this.vy = vy;
}
public int getVy() {
return vy;
}
public void setGs(double gs) {
this.gs = gs;
}
public double getGs() {
return gs;
}
public boolean isMagneticHeading() {
return headingSourceMagnetic;
}
public void setHeadingSource(boolean magneticHeading) {
this.headingSourceMagnetic = magneticHeading;
}
public void setMagneticHeading(double magneticHeading) {
this.magneticHeading = magneticHeading;
}
public double getMagneticHeading() {
return magneticHeading;
}
public void setTrueHeading(double trueHeading) {
this.trueHeading = trueHeading;
}
public double getTrueHeading() {
return trueHeading;
}
public void setIasAvailable(boolean iasAvailable) {
this.iasAvailable = iasAvailable;
}
public boolean isIasAvailable() {
return iasAvailable;
}
public void setIas(int ias) {
this.ias = ias;
}
public int getIas() {
return ias;
}
public void setTas(double tas) {
this.tas = tas;
}
public double getTas() {
return tas;
}
public void setSelectedAltitudeManagedFms(boolean selectedAltitudeManagedFms) {
this.selectedAltitudeManagedFms = selectedAltitudeManagedFms;
}
public boolean getSelectedAltitudeManagedFms() {
return selectedAltitudeManagedFms;
}
public void setSelectedAltitudeManagedMcp(boolean selectedAltitudeManagedMcp) {
this.selectedAltitudeManagedMcp = selectedAltitudeManagedMcp;
}
public boolean getSelectedAltitudeManagedMcp() {
return selectedAltitudeManagedMcp;
}
public void setSelectedAltitude(int selectedAltitude) {
this.selectedAltitude = selectedAltitude;
}
public int getSelectedAltitude() {
return selectedAltitude;
}
public void setBaroSetting(double baroSetting) {
this.baroSetting = baroSetting;
}
public double getBaroSetting() {
return baroSetting;
}
public void setSelectedHeading(double selectedHeading) {
this.selectedHeading = selectedHeading;
}
public double getSelectedHeading() {
return selectedHeading;
}
public void setSil(int sil) {
this.sil = sil;
}
public int getSil() {
return sil;
}
public void setAutopilot(boolean autopilot) {
this.autopilot = autopilot;
}
public boolean getAutopilot() {
return autopilot;
}
public void setVnav(boolean vnav) {
this.vnav = vnav;
}
public boolean getVnav() {
return vnav;
}
public void setAltitudeHold(boolean altitudeHold) {
this.altitudeHold = altitudeHold;
}
public boolean getAltitudeHold() {
return altitudeHold;
}
public void setApproachMode(boolean approachMode) {
this.approachMode = approachMode;
}
public boolean getApproachMode() {
return approachMode;
}
public void setLnav(boolean lnav) {
this.lnav = lnav;
}
public boolean getLnav() {
return lnav;
}
public void setLengthWidthCode(LengthWidthCode lengthWidthCode) {
this.lengthWidthCode = lengthWidthCode;
}
public LengthWidthCode getLengthWidthCode() {
return lengthWidthCode;
}
public void setEmergencyState(EmergencyState emergencyState) {
this.emergencyState = emergencyState;
}
public EmergencyState getEmergencyState() {
return emergencyState;
}
public void setFmsSelectedAltitude(int fmsSelectedAltitude) {
this.fmsSelectedAltitude = fmsSelectedAltitude;
}
public int getFmsSelectedAltitude() {
return fmsSelectedAltitude;
}
public void setSelectedAltitudeSource(SelectedAltitudeSource selectedAltitudeSource) {
this.selectedAltitudeSource = selectedAltitudeSource;
}
public SelectedAltitudeSource getSelectedAltitudeSource() {
return selectedAltitudeSource;
}
public void setRollAngle(double rollAngle) {
this.rollAngle = rollAngle;
}
public double getRollAngle() {
return rollAngle;
}
public void setTrackAngleRate(double trackAngleRate) {
this.trackAngleRate = trackAngleRate;
}
public double getTrackAngleRate() {
return trackAngleRate;
}
public void setMach(double mach) {
this.mach = mach;
}
public double getMach() {
return mach;
}
public void setBaroRocd(double baroRocd) {
this.baroRocd = baroRocd;
}
public double getBaroRocd() {
return baroRocd;
}
public String getAtype() {
return atype;
}
public Track setAtype(String atype) {
this.atype = atype;
return this;
}
public String getWtc() {
return wtc;
}
public Track setWtc(String wtc) {
this.wtc = wtc;
return this;
}
public void setRegistration(String registration) {
this.registration = registration;
}
public String getRegistration() {
return registration;
}
public void setOperator(String operator) {
this.operator = operator;
}
public String getOperator() {
return operator;
}
public boolean wasJustCreated() {
return wasJustCreated;
}
public void setWasJustCreated(boolean state) {
this.wasJustCreated = state;
}
public Meteo getMeteo() {
return meteo;
}
public CapabilityReport getCapabilityReport() {
return capabilityReport;
}
@Override
public String toString() {
return String.format(
"%8s(%s) | %6.0f%s | %4.0fft/min| %4.0fKT | LAT: %02.4f LON: %03.4f",
callsign != null ? callsign : "",
icao,
altitude.getAltitude(),
altitude.isMetric() ? "M " : "FT",
rocdAvailable ? rocd : 0f,
gs,
lat,
lon
);
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/constants/AcasCapability.java
|
package aero.t2s.modes.constants;
public enum AcasCapability {
ACAS_OPERATIONAL_OR_UNKNOWN,
ACAS_NOT_OPERATIONAL,
ACAS_NO_RA,
ACAS_RA,
;
public static AcasCapability from(int code) {
switch (code) {
case 0: return ACAS_OPERATIONAL_OR_UNKNOWN;
case 1: return ACAS_NOT_OPERATIONAL;
case 2: return ACAS_NO_RA;
case 3: return ACAS_RA;
default:
throw new IllegalArgumentException("ACAS Capability " + code + " is not valid");
}
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/constants/AcasReplyInformation.java
|
package aero.t2s.modes.constants;
public enum AcasReplyInformation {
/**
* 0 - signifies a reply to an air-air interrogation UF = 0 with AQ = 0, no operating ACAS
*/
NO_OPERATING_ACAS,
/**
* 1 - reserved for ACAS
*/
RESERVED1,
/**
* 2 - reserved for ACAS
*/
RESERVED2,
/**
* 3 - reserved for ACAS
*/
RESERVED3,
/**
* 4 - reserved for ACAS
*/
RESERVED4,
/**
* 5 - reserved for ACAS
*/
RESERVED5,
/**
* 6 - reserved for ACAS
*/
RESERVED6,
/**
* 7 - reserved for ACAS
*/
RESERVED7,
/**
* 8 - no maximum airspeed data available
*/
NO_MAX_SPEED,
/**
* 9 - maximum airspeed is .LE. 140 km/h (75 kt)
*/
LESS_THAN_75KT(Integer.MIN_VALUE, 75),
/**
* 10 - maximum airspeed is .GT. 140 and .LE. 280 km/h (75 and 150 kt)
*/
GREATER_THAN_75_LESS_THAN_150(75, 150),
/**
* 11 - maximum airspeed is .GT. 280 and .LE. 560 km/h (150 and 300 kt)
*/
GREATER_THAN_150_LESS_THAN_300(150, 300),
/**
* 12 - maximum airspeed is .GT. 560 and .LE. 1 110 km/h (300 and 600 kt)
*/
GREATER_THAN_300_LESS_THAN_600(300, 600),
/**
* 13 - maximum airspeed is .GT. 1 110 and .LE. 2 220 km/h (600 and 1 200 kt)
*/
GREATER_THAN_600_LESS_THAN_1200(600, 1200),
/**
* 14 - maximum airspeed is more than 2 220 km/h (1 200 kt)
*/
GREATER_THAN_1200(1200, Integer.MAX_VALUE),
/**
* 15 - not assigned
*/
NOT_ASSIGNED,
;
private final int lower;
private final int upper;
AcasReplyInformation(int lower, int upper) {
if (lower > upper) {
upper = lower;
lower = 0;
}
this.lower = lower;
this.upper = upper;
}
AcasReplyInformation() {
this.lower = 0;
this.upper = 0;
}
public static AcasReplyInformation from(int replyInformation) {
if (replyInformation > values().length || replyInformation < 0) {
return NO_OPERATING_ACAS;
}
return values()[replyInformation];
}
public boolean isMaxAirspeedAvailable() {
return lower != 0 || upper != 0;
}
public int getLessThan() {
return upper;
}
public int getGreaterThan() {
return lower;
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/constants/AcasSensitivity.java
|
package aero.t2s.modes.constants;
public enum AcasSensitivity {
/**
* 0 - ACAS inoperative
*/
INOP,
/**
* 1 - ACAS is operating at sensitivity level 1
*/
LEVEL1,
/**
* 2 - ACAS is operating at sensitivity level 2
*/
LEVEL2,
/**
* 3 - ACAS is operating at sensitivity level 3
*/
LEVEL3,
/**
* 4 - ACAS is operating at sensitivity level 4
*/
LEVEL4,
/**
* 5 - ACAS is operating at sensitivity level 5
*/
LEVEL5,
/**
* 6 - ACAS is operating at sensitivity level 6
*/
LEVEL6,
/**
* 7 - ACAS is operating at sensitivity level 7
*/
LEVEL7,
;
public static AcasSensitivity from(int sensitivity) {
if (sensitivity > values().length || sensitivity < 0) {
return INOP;
}
return values()[sensitivity];
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/constants/AcasState.java
|
package aero.t2s.modes.constants;
public enum AcasState {
RA_NOT_ACTIVE,
RA_ACTIVE,
;
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/constants/Angle.java
|
package aero.t2s.modes.constants;
public enum Angle {
HEADING,
MAGNETIC_HEADING,
TRUE_HEADING,
TRACK,
MAGNETIC_TRACK,
TRUE_TRACK,
;
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/constants/BarometricAltitudeIntegrityCode.java
|
package aero.t2s.modes.constants;
public enum BarometricAltitudeIntegrityCode {
NOT_CROSS_CHECKED,
CROSS_CHECKED,
;
public static BarometricAltitudeIntegrityCode from(int code) {
switch (code) {
case 0:
return NOT_CROSS_CHECKED;
case 1:
return CROSS_CHECKED;
default:
throw new IllegalArgumentException("NICbaro " + code + " is not valid");
}
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/constants/Capability.java
|
package aero.t2s.modes.constants;
public enum Capability {
SURVEILLANCE_ONLY,
RESERVED1,
RESERVED2,
RESERVED3,
LEVEL2_ON_GROUND,
LEVEL2_AIRBORNE,
LEVEL2_UNKNOWN,
CONDITIONS_NOT_MET,
;
public static Capability from(int capability) {
switch (capability) {
case 0: return SURVEILLANCE_ONLY;
case 1: return RESERVED1;
case 2: return RESERVED2;
case 3: return RESERVED3;
case 4: return LEVEL2_ON_GROUND;
case 5: return LEVEL2_AIRBORNE;
case 6: return LEVEL2_UNKNOWN;
case 7: return CONDITIONS_NOT_MET;
default:
throw new IllegalArgumentException("Invalid capability " + capability);
}
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/constants/CrossLinkCapability.java
|
package aero.t2s.modes.constants;
public enum CrossLinkCapability {
/**
* 0 - the transponder cannot support the cross-link capability
*/
UNSUPPORTED,
/**
* 1 - the transponder supports the cross-link capability.
*/
SUPPORTED,
;
public static CrossLinkCapability from(int coding)
{
if (coding == 0) {
return UNSUPPORTED;
}
if (coding == 1) {
return SUPPORTED;
}
return null;
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/constants/EmergencyState.java
|
package aero.t2s.modes.constants;
public enum EmergencyState {
NONE,
EMERGENCY,
MEDICAL,
MINIMAL_FUEL,
NO_COMM,
HIJACK,
DOWNED,
RESERVED
;
public static EmergencyState from(int state) {
if (state > values().length || state < 0) {
return NONE;
}
return values()[state];
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/constants/GeometricVerticalAccuracy.java
|
package aero.t2s.modes.constants;
public enum GeometricVerticalAccuracy {
UNKNOWN("Unknown or > 150m"),
LESS_THAN_150M("<=1 150M"),
LESS_THAN_45M("<= 45M"),
RESERVED("RESERVED (V3 will have a value < 45m)"),
;
private String probability;
GeometricVerticalAccuracy(String probability) {
this.probability = probability;
}
public static GeometricVerticalAccuracy from(int code) {
switch (code) {
case 0: return UNKNOWN;
case 1: return LESS_THAN_150M;
case 2: return LESS_THAN_45M;
case 3: return RESERVED;
default: throw new IllegalArgumentException("GVA " + code + " is not valid");
}
}
@Override
public String toString() {
return probability;
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/constants/Hazard.java
|
package aero.t2s.modes.constants;
public enum Hazard {
NIL,
LIGHT,
MODERATE,
SEVERE,
;
public static Hazard find(int source) {
switch (source) {
case 0: return NIL;
case 1: return LIGHT;
case 2: return MODERATE;
case 3: return SEVERE;
default: throw new IllegalArgumentException("Invalid Hazard source " + source);
}
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/constants/HorizontalDataAvailable.java
|
package aero.t2s.modes.constants;
public enum HorizontalDataAvailable {
NOT_VALID,
AUTOPILOT,
HOLD_CURRENT_HEADING_TRACK,
FMS_RNAV,
;
public static HorizontalDataAvailable from(int code) {
switch (code) {
case 0: return NOT_VALID;
case 1: return AUTOPILOT;
case 2: return HOLD_CURRENT_HEADING_TRACK;
case 3: return FMS_RNAV;
default:
throw new IllegalArgumentException("Horizon Data Available " + code + " is not valid");
}
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/constants/HorizontalModeIndicator.java
|
package aero.t2s.modes.constants;
public enum HorizontalModeIndicator {
UNKNOWN,
ACQUIRE,
CAPTURE_MAINTAIN,
RESERVED,
;
public static HorizontalModeIndicator from(int code) {
switch (code) {
case 0: return UNKNOWN;
case 1: return ACQUIRE;
case 2: return CAPTURE_MAINTAIN;
case 3: return RESERVED;
default:
throw new IllegalArgumentException("Horizontal Mode Indicator " + code + " is not valid");
}
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/constants/LengthWidthCode.java
|
package aero.t2s.modes.constants;
public enum LengthWidthCode {
CAT0(15, 11.5),
CAT1(15, 23),
CAT2(25, 28.5),
CAT3(25, 34),
CAT4(35, 33),
CAT5(35, 38),
CAT6(45, 39.5),
CAT7(45, 45),
CAT8(55, 45),
CAT9(55, 52),
CAT10(65, 59.5),
CAT11(65, 67),
CAT12(75, 72.5),
CAT13(75, 80),
CAT14(85, 80),
CAT15(85, 90),
;
private final double length;
private final double width;
LengthWidthCode(double length, double width) {
this.length = length;
this.width = width;
}
public static LengthWidthCode from(int category) {
if (category > values().length | category < 0) {
return CAT15;
}
return values()[category];
}
public double getMaxWidth() {
return width;
}
public double getMaxLength() {
return length;
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/constants/MeteoSource.java
|
package aero.t2s.modes.constants;
public enum MeteoSource {
INVALID,
INS,
GNSS,
DME_DME,
VOR_DME,
RESERVED,
;
public static MeteoSource find(int source) {
switch (source) {
case 0:
return INVALID;
case 1:
return INS;
case 2:
return GNSS;
case 3:
return DME_DME;
case 4:
return VOR_DME;
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
case 14:
case 15:
return RESERVED;
default:
throw new IllegalArgumentException("Invalid source " + source);
}
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/constants/NavigationAccuracyCategoryPosition.java
|
package aero.t2s.modes.constants;
public enum NavigationAccuracyCategoryPosition {
UNKNOWN("EPU >= 18.52 km (10 NM) - Unknown accuracy"),
RNP10("EPU < 18.52 km (10 NM) - RNP-10 accuracy"),
RNP4("EPU < 7.408 km (4 NM) - RNP-4 accuracy"),
RNP2("EPU < 3.704 km (2 NM) - RNP-2 accuracy"),
RNP1("EPU < 1852 m (1NM) - RNP-1 accuracy"),
RNP05("EPU < 926 m (0.5 NM) - RNP-0.5 accuracy"),
RNP03("EPU < 555.6 m ( 0.3 NM) - RNP-0.3 accuracy"),
RNP01("EPU < 185.2 m (0.1 NM) - RNP-0.1 accuracy"),
GPS_SA("EPU < 92.6 m (0.05 NM) - e.g., GPS (with SA)"),
GPS_NO_SA("EPU < 30m-e.g.,GPS(SA off)"),
WAAS("EPU < 10m-e.g.,WAAS"),
LAAS("EPU < 3m-e.g.,LAAS"),
RESERVED("Reserved"),
;
private String accuracy;
NavigationAccuracyCategoryPosition(String accuracy) {
this.accuracy = accuracy;
}
public static NavigationAccuracyCategoryPosition find(int accuracy) {
switch (accuracy) {
case 0: return UNKNOWN;
case 1: return RNP10;
case 2: return RNP4;
case 3: return RNP2;
case 4: return RNP1;
case 5: return RNP05;
case 6: return RNP03;
case 7: return RNP01;
case 8: return GPS_SA;
case 9: return GPS_NO_SA;
case 10: return WAAS;
case 11: return LAAS;
case 12:
case 13:
case 14:
case 15:
return RESERVED;
}
throw new IllegalArgumentException("Invalid accuracy received " + accuracy);
}
@Override
public String toString() {
return accuracy;
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/constants/NavigationIntegrityCategory.java
|
package aero.t2s.modes.constants;
public enum NavigationIntegrityCategory {
UNKNOWN("Rc unknown"),
RC_20_NM("Rc < 20 NM (37.04 km)"),
RC_8_NM("Rc < 8 NM (14.816 km)"),
RC_4_NM("Rc < 4 NM (7.408 km)"),
RC_2_NM("Rc < 2 NM (3.704 km)"),
RC_1_NM("Rc < 1 NM (1852 m)"),
RC_0_6_NM("Rc < 0.6 NM (1111.2 m)"),
RC_0_5_NM("Rc < 0.5 NM (926 m)"),
RC_0_3_NM("Rc < 0.3 NM (555.6 m)"),
RC_0_2_NM("Rc < 0.2 NM (370.4 m)"),
RC_0_1_NM("Rc < 0.1 NM (185.2 m)"),
RC_75_M("Rc < 75m"),
RC_25_M("Rc < 25m"),
RC_7_5_M("Rc < 7.5m"),
RESERVED_1("Reserved"),
RESERVED_2("Reserved"),
RESERVED_3("Reserved"),
RESERVED_4("Reserved"),
;
private String radiusContainment;
NavigationIntegrityCategory(String radiusContainment) {
this.radiusContainment = radiusContainment;
}
public static NavigationIntegrityCategory airborne(int nic, int nicA, int nicB) {
switch (nic) {
case 0: return UNKNOWN;
case 1: return RC_20_NM;
case 2: return RC_8_NM;
case 3: return RC_4_NM;
case 4: return RC_2_NM;
case 5: return RC_1_NM;
case 6:
if (nicA == 1) {
return RC_0_6_NM;
} else {
return nicB == 1 ? RC_0_3_NM : RC_0_5_NM;
}
case 7: return RC_0_2_NM;
case 8: return RC_0_1_NM;
case 9: return RC_75_M;
case 10: return RC_25_M;
case 11: return RC_7_5_M;
case 12: return RESERVED_1;
case 13: return RESERVED_2;
case 14: return RESERVED_3;
case 15: return RESERVED_4;
default: return UNKNOWN;
}
}
public static NavigationIntegrityCategory surface(int nic, int nicA) {
switch (nic) {
case 0: return UNKNOWN;
case 6:
if (nicA == 1) {
return RC_0_3_NM;
} else {
return RC_0_6_NM;
}
case 7: return RC_0_2_NM;
case 8: return RC_0_1_NM;
case 9: return RC_75_M;
case 10: return RC_25_M;
case 11: return RC_7_5_M;
case 12: return RESERVED_1;
case 13: return RESERVED_2;
case 14: return RESERVED_3;
case 15: return RESERVED_4;
default: return UNKNOWN;
}
}
@Override
public String toString() {
return radiusContainment;
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/constants/NavigationUncertaintyCategory.java
|
package aero.t2s.modes.constants;
public enum NavigationUncertaintyCategory {
UNKNOWN("Unknown"),
NUC1("Horizontal: < 10 m/s | Vertical: < 15.2 m/s (50fps)"),
NUC2("Horizontal: < 3 m/s | Vertical: < 4.6 m/s (15fps)"),
NUC3("Horizontal: < 1 m/s | Vertical: < 1.5 m/s (5fps)"),
NUC4("Horizontal: < 0.3 m/s | Vertical: < 13786 m/s (1.5fps)"),
;
private String probability;
NavigationUncertaintyCategory(String probability) {
this.probability = probability;
}
public static NavigationUncertaintyCategory from(int code) {
switch (code) {
case 0: return UNKNOWN;
case 1: return NUC1;
case 2: return NUC2;
case 3: return NUC3;
case 4: return NUC4;
default: throw new IllegalArgumentException("NUC " + code + " is not valid");
}
}
@Override
public String toString() {
return probability;
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/constants/ResolutionAdvisory.java
|
package aero.t2s.modes.constants;
public class ResolutionAdvisory {
private boolean requiresCorrectionUpwards;
private boolean requiresPositiveClimb;
private boolean requiresCorrectionDownwards;
private boolean requiresPositiveDescend;
private boolean requiresCrossing;
private boolean senseReversal;
private boolean active;
public ResolutionAdvisory() {
}
public ResolutionAdvisory(int activeResolutionAdvisory) {
update(activeResolutionAdvisory);
}
public void update(ResolutionAdvisory advisory) {
requiresCorrectionUpwards = advisory.isRequiresCorrectionUpwards();
requiresPositiveClimb = advisory.isRequiresPositiveClimb();
requiresCorrectionDownwards = advisory.isRequiresCorrectionDownwards();
requiresPositiveDescend = advisory.isRequiresPositiveDescend();
requiresCrossing = advisory.isRequiresCrossing();
senseReversal = advisory.isSenseReversal();
active = advisory.isActive();
}
public void update(int ara) {
requiresCorrectionUpwards = ara >>> 12 == 1;
requiresPositiveClimb = ara >>> 11 == 1;
requiresCorrectionDownwards = ara >>> 10 == 1;
requiresPositiveDescend = ara >>> 9 == 1;
requiresCrossing = ara >>> 8 == 1;
senseReversal = ara >>> 7 == 1;
if (!active && ara >>> 13 == 1) {
active = true;
}
}
public void clear() {
requiresCorrectionUpwards = false;
requiresPositiveClimb = false;
requiresCorrectionDownwards = false;
requiresPositiveDescend = false;
requiresCrossing = false;
senseReversal = false;
active = false;
}
public boolean isRequiresCorrectionUpwards() {
return requiresCorrectionUpwards;
}
public boolean isRequiresPositiveClimb() {
return requiresPositiveClimb;
}
public boolean isRequiresCorrectionDownwards() {
return requiresCorrectionDownwards;
}
public boolean isRequiresPositiveDescend() {
return requiresPositiveDescend;
}
public boolean isRequiresCrossing() {
return requiresCrossing;
}
public boolean isSenseReversal() {
return senseReversal;
}
public boolean isActive() {
return active;
}
public void setActive(boolean active) {
this.active = active;
}
@Override
public String toString() {
String out = "\n";
if (requiresCorrectionUpwards) {
out += " - RA requires a correction in the upward sense";
}
if (requiresPositiveClimb) {
out += " - RA requires a positive climb";
}
if (requiresCorrectionDownwards) {
out += " - RA requires a correction in the downward sense";
}
if (requiresPositiveDescend) {
out += " - RA requires a positive descend";
}
if (requiresCrossing) {
out += " - RA requires a crossing";
}
if (senseReversal) {
out += " - RA is a sense reversal";
}
return out;
}
}
|
0
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes
|
java-sources/aero/t2s/mode-s/0.2.5/aero/t2s/modes/constants/RocdSource.java
|
package aero.t2s.modes.constants;
public enum RocdSource {
BARO,
GNSS,
;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.