Révision 96454bcd
Ajouté par Sylvain Sauvage il y a plus de 11 ans
BETa/src/main/java/fr/unicaen/iota/application/client/gui/SearchArea.java | ||
---|---|---|
package fr.unicaen.iota.application.client.gui;
|
||
|
||
import fr.unicaen.iota.application.client.listener.EPCEventListener;
|
||
import fr.unicaen.iota.application.model.EPCISEvent;
|
||
import fr.unicaen.iota.application.util.TimeParser;
|
||
import fr.unicaen.iota.application.util.TravelTimeTuple;
|
||
import fr.unicaen.iota.mu.EPCISEventTypeHelper;
|
||
import java.awt.BorderLayout;
|
||
import java.awt.Color;
|
||
import java.awt.FlowLayout;
|
||
... | ... | |
import javax.swing.*;
|
||
import javax.swing.table.DefaultTableModel;
|
||
import javax.swing.table.TableColumn;
|
||
import org.fosstrak.epcis.model.EPCISEventType;
|
||
|
||
/**
|
||
*
|
||
... | ... | |
}
|
||
|
||
@Override
|
||
public void eventReveived(String session, EPCISEvent e) {
|
||
public void eventReveived(String session, EPCISEventType e) {
|
||
if (!session.equals(this.sessionId)) {
|
||
return;
|
||
}
|
||
currentIndex++;
|
||
((DefaultTableModel) getJTableGenerated().getModel()).addRow(new String[]{currentIndex + "", formatEPC(e), e.getType().toString(), e.getBizLoc(), e.getBizStep(), TimeParser.format(e.getEventTime())});
|
||
EPCISEventTypeHelper he = new EPCISEventTypeHelper(e);
|
||
((DefaultTableModel) getJTableGenerated().getModel()).addRow(new String[]{
|
||
currentIndex + "",
|
||
formatEPC(he),
|
||
he.getType().toString(),
|
||
he.getBizLocation(),
|
||
he.getBizStep(),
|
||
TimeParser.format(he.getEventTime())});
|
||
}
|
||
|
||
public void setTerminated() {
|
||
... | ... | |
setTitle(newTitle);
|
||
}
|
||
|
||
private String formatEPC(EPCISEvent e) {
|
||
private String formatEPC(EPCISEventTypeHelper e) {
|
||
List<String> res = new ArrayList<String>();
|
||
List<String> l = e.getEpcs();
|
||
List<String> l = e.getEpcList();
|
||
for (String s : l) {
|
||
res.add(" EPC: " + s + " \n");
|
||
}
|
Formats disponibles : Unified diff
Version 1.9-mock
This is version 1.9-mock. 1.9 because the API still have changes pending
(principally relative to the Discovery Services). “mock” because TLS
configuration is not yet available and the signatures (SigMa) are not fully
implemented.
- code cleaned and refactored
- lots of bugs fixed
- dependencies checked and trimmed
- documentation added
- Identity handling added
- code refactored
- new, better APIs
- Identity handling added
- use EPCglobal and DS events (no proxy types anymore)
- ETa-Callback modules are now available as web applications
- filtering rules: if a part of an event is not allowed, now the whole
event is deleted from the result (before only the rejectd part was)
- new temporary User web service
- new Xi module: XACML Interrogation web service (was two modules: TCP and
servlet)
- ETa and its Callback modules
- ActiveMQ
- SigMa
- certificate/signing key
- new simplified figures (sans IoTa and simplified IoTa)
- new figure for ETa modules
- show 3rd party clients
- data flows specified
- TLS and link security added
- IDs and trusted IDs added
- color adjusted for printing
- GREYC logo added