de.cesr.more.util
Class MEdgeLengthDbWriter

java.lang.Object
  extended by de.cesr.more.util.MEdgeLengthDbWriter

public class MEdgeLengthDbWriter
extends Object

MORe Writes edge distance with runID and milieu ID to the DB defined in params in MSqlPa when requested. Table name is taken from MSqlPa.TBLNAME_EDGE_LENGTH.

Date:
25.02.2014

Field Summary
protected  MoreRunIdProvider prov
           
static boolean WRITE_MILIEU_ID
           
static boolean WRITE_RUN_ID
           
 
Constructor Summary
MEdgeLengthDbWriter(MoreRunIdProvider prov)
           
 
Method Summary
protected  PreparedStatement getPreparedStatement()
           
<AgentType extends MoreMilieuAgent,EdgeType extends MoreEdge<? super AgentType>>
void
writeEdgeLength(MoreNetwork<AgentType,EdgeType> network, repast.simphony.space.gis.Geography<Object> geography)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WRITE_RUN_ID

public static final boolean WRITE_RUN_ID
See Also:
Constant Field Values

WRITE_MILIEU_ID

public static final boolean WRITE_MILIEU_ID
See Also:
Constant Field Values

prov

protected MoreRunIdProvider prov
Constructor Detail

MEdgeLengthDbWriter

public MEdgeLengthDbWriter(MoreRunIdProvider prov)
Method Detail

writeEdgeLength

public <AgentType extends MoreMilieuAgent,EdgeType extends MoreEdge<? super AgentType>> void writeEdgeLength(MoreNetwork<AgentType,EdgeType> network,
                                                                                                             repast.simphony.space.gis.Geography<Object> geography)

getPreparedStatement

protected PreparedStatement getPreparedStatement()
Returns: