Compare Revisions

The credentials to download the source code are:
 Username: svnusers
 Password: svnusers

Ignore whitespace Rev 870 → Rev 871

/trunk/javasrc/adapter/org/etsi/its/adapter/Management.java
15,10 → 15,12
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
 
import org.etsi.adapter.TERFactory;
import org.etsi.common.ByteHelper;
import org.etsi.common.ITuple;
import org.etsi.common.Tuple;
import org.etsi.its.adapter.ports.GnPort;
import org.etsi.ttcn.tci.CharstringValue;
 
/**
* This class is used to centralise test adapter configuration and execution parameters
34,7 → 36,7
/**
* GeoNetworking beaconning interval
*/
private static final int GN_BEACON_INTERVAL = 1000; /* FIXME: GN beacon interval */
private static final int GN_BEACON_INTERVAL = Integer.decode(((CharstringValue)TERFactory.getInstance().getTaParameter("TsBeaconInterval")).getString());
 
/**
* Maximum time for getting Long position vector (in seconds)
45,9 → 47,19
* Interval for polling the location table during GetLpv (in ms)
*/
private static final long GET_LPV_POLL_INTERVAL = 1000;
/**
* Test system latitude
*/
private static final int latitude = Integer.decode(((CharstringValue)TERFactory.getInstance().getTaParameter("TsLatitude")).getString());
/**
* Test system longitude
*/
private static final int longitude = Integer.decode(((CharstringValue)TERFactory.getInstance().getTaParameter("TsLongitude")).getString());
/**
* Link-layer address of Compoment
* Link-layer address of Component
*/
private byte[] linkLayerAddress = null;
 
120,7 → 132,7
*/
@Override
public void startMultipleBeaconing(byte[] beaconHeader, int nbNeighbours) {
/* TODO */
/* TODO: Multiple beacons */
}
/* (non-Javadoc)
128,7 → 140,7
*/
@Override
public void stopMultipleBeaconing() {
/* TODO */
/* TODO: Multiple beacons */
}
 
/* (non-Javadoc)
212,8 → 224,7
*/
@Override
public byte[] getLatitude() {
/* FIXME: hard-coded value(ETSI) */
return ByteHelper.intToByteArray(436175790, 4);
return ByteHelper.intToByteArray(latitude, 4);
}
 
/* (non-Javadoc)
221,8 → 232,7
*/
@Override
public byte[] getLongitude() {
/* FIXME: hard-coded value(ETSI) */
return ByteHelper.intToByteArray(70546480, 4);
return ByteHelper.intToByteArray(longitude, 4);
}
/**