public class BlackBox
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
BlackBox()
Instantiates a new black box.
|
BlackBox(Scheduler scheduler,
java.io.File systemFile)
Instantiates a new black box.
|
Modifier and Type | Method and Description |
---|---|
void |
buildBlackBoxFromFile(java.io.File systemFile)
Builds the black box from file.
|
java.util.ArrayList<BlackBoxAgent> |
getBBAofClasses(java.lang.Class<?>[] classes)
Gets the BB aof classes.
|
java.util.HashMap<java.lang.String,BlackBoxAgent> |
getBlackBoxAgents()
Gets the black box agents.
|
int |
getnProbes()
Gets the n probes.
|
Scheduler |
getScheduler()
Gets the scheduler.
|
void |
registerBlackBoxAgent(BlackBoxAgent a)
Register a new agent in the black box and in the scheduler.
|
void |
setBlackBoxAgents(java.util.HashMap<java.lang.String,BlackBoxAgent> blackBoxAgents)
Sets the black box agents.
|
void |
setnProbes(int nProbes)
Sets the n probes.
|
void |
setScheduler(Scheduler scheduler)
Sets the scheduler.
|
public BlackBox(Scheduler scheduler, java.io.File systemFile)
scheduler
- the schedulersystemFile
- the system filepublic BlackBox()
public void buildBlackBoxFromFile(java.io.File systemFile)
systemFile
- the system filepublic void registerBlackBoxAgent(BlackBoxAgent a)
a
- the apublic Scheduler getScheduler()
public void setScheduler(Scheduler scheduler)
scheduler
- the new schedulerpublic java.util.HashMap<java.lang.String,BlackBoxAgent> getBlackBoxAgents()
public java.util.ArrayList<BlackBoxAgent> getBBAofClasses(java.lang.Class<?>[] classes)
classes
- the classespublic void setBlackBoxAgents(java.util.HashMap<java.lang.String,BlackBoxAgent> blackBoxAgents)
blackBoxAgents
- the black box agentspublic int getnProbes()
public void setnProbes(int nProbes)
nProbes
- the new n probes