LaColla.core.components
Class SA

java.lang.Object
  extended by LaColla.core.components.Compo
      extended by LaColla.core.components.SA

public class SA
extends Compo

Author:
Xavier Created on 19-nov-2004 by Xavier into LaColla.core.components Simulation Agent

Field Summary
 
Fields inherited from class LaColla.core.components.Compo
purgeSessionPeriodicity, timeRemainingBeforeObjectIsResend
 
Constructor Summary
SA(int listenPort_, java.util.ArrayList groupIdList, java.lang.String idFilename)
           
 
Method Summary
 void doMsgToSAConnectedAgents(Msg msg)
           
 void doMsgToSimulationAgent(Msg msg)
           
 void doServiceNewIteration()
           
 void dumpNoConsistencyResult()
           
 java.lang.String getAddress()
           
 SA getSA()
           
 ServiceNewIteration getServiceNewIteration()
           
 SimulationLog getSimulationLog()
           
 void openOutFiles()
           
 void setAddress(java.lang.String address)
           
 void setReplicationFactor(int replicationFactor_)
           
 void setResultSimulationFileName(java.lang.String resultSimulationFileName_)
           
 void setSimulationLog(SimulationLog simulationLog)
           
 void start()
           
 void writeResult()
           
 
Methods inherited from class LaColla.core.components.Compo
createNewGroup, createNewGroup, decrementConnectedAgentsTimeBeforeBeingDiscarted, decrementConnectedAgentsTimeBeforeBeingDiscarted, doAcceptPresenceConsistencyRequest, doInvokePresenceConsistencyRequest, doNewGroup, doPartitionsAcceptConsistencyRequest, doPartitionsAcceptSynchronizationRequest, doPartitionsInvokeConsistencyRequest, doPartitionsInvokeSynchronizationRequest, doPresenceAgentAlive, doPresenceAgentDisconnected, doPresenceAreYouAlive, doPresenceNewConnectedAgent, doServiceEventsConsistency, doServiceEventsSynchronization, doServiceNewIteration, doServiceObjectsReplicationChecking, doServicePartitionsChecking, doServicePartitionsConsistency, doServicePartitionsSynchronization, doServicePresenceConsistency, doServiceTimer, getConnecting, getEventsConsistency, getEventsSynchronization, getGroupId, getGroups, getHp, getKindOfAgent, getListenPort, getObjectsReplicationChecking, getOwnerId, getPartitionsChecking, getPartitionsConsistency, getPartitionsSynchronization, getPresenceConsistency, getPurge, getSeqNumGroup, getSequenceNumber, getSequenceNumberInfoAgent, getSequenceNumberObjects, getServiceConnecting, getServiceEventsConsistency, getServiceEventsSynchronization, getServiceObjectsReplicationChecking, getServicePartitionsChecking, getServicePartitionsConsistency, getServicePartitionsSynchronization, getServicePresenceConsistency, getServicePurge, getServiceTimer, getSimulationAgentHp, getSimulationTime, getTime, getTimeBeforeSendingAgentAliveMsg, getTimeRemainingBeforeEventIsResend, getTimeRemainingBeforeObjectIsResend, getTimestampLOCALlocation, goMsg_Dest, isSimulation, presenceConsistencySession, sendEventToConnectedUAandRA, sendToEveryAgent, sendToEveryAgent, setConnecting, setEventsConsistency, setEventsSynchronization, setGroupId, setHP, setKindOfAgent, setListenPort, setObjectsReplicationChecking, setOwnerId, setPartitionsChecking, setPartitionsConsistency, setPartitionsSynchronization, setPresenceConsistency, setPurge, setSeqNumGroup, setSequenceNumber, setSequenceNumberInfoAgent, setSequenceNumberObjects, setServiceConnecting, setServiceEventsConsistency, setServiceEventsSynchronization, setServiceObjectsReplicationChecking, setServicePartitionsChecking, setServicePartitionsConsistency, setServicePartitionsSynchronization, setServicePresenceConsistency, setServicePurge, setServiceTimer, setTimeBeforeSendingAgentAliveMsg, setTimer, setTimeRemainingBeforeEventIsResend, setTimeRemainingBeforeObjectIsResend, setTimestampLOCALlocation, start
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SA

public SA(int listenPort_,
          java.util.ArrayList groupIdList,
          java.lang.String idFilename)
Parameters:
kindOfAgent_ -
listenPortGAPA_ -
listenPortRA_ -
listenPortUA_ -
groupId -
Method Detail

start

public void start()

doMsgToSAConnectedAgents

public void doMsgToSAConnectedAgents(Msg msg)

doServiceNewIteration

public void doServiceNewIteration()

doMsgToSimulationAgent

public void doMsgToSimulationAgent(Msg msg)

openOutFiles

public void openOutFiles()

writeResult

public void writeResult()

dumpNoConsistencyResult

public void dumpNoConsistencyResult()

setReplicationFactor

public void setReplicationFactor(int replicationFactor_)

setResultSimulationFileName

public void setResultSimulationFileName(java.lang.String resultSimulationFileName_)

getSA

public SA getSA()

getSimulationLog

public SimulationLog getSimulationLog()
Returns:

getAddress

public java.lang.String getAddress()
Overrides:
getAddress in class Compo
Returns:
Returns the address.

setAddress

public void setAddress(java.lang.String address)
Overrides:
setAddress in class Compo
Parameters:
address - The address to set.

setSimulationLog

public void setSimulationLog(SimulationLog simulationLog)
Parameters:
simulationLog - The simulationLog to set.

getServiceNewIteration

public ServiceNewIteration getServiceNewIteration()