|
MATES 3.0-rc2 | ||||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of Host in org.mates.sim |
Fields in org.mates.sim declared as Host | |
Host |
Simulator.MigrationInfo.source
The host from which this agent is being transmitted |
Host |
Simulator.MigrationInfo.destination
The host to which this agent is being transmitted |
protected Host |
Agent.host
The current host on which this agent resides. |
Methods in org.mates.sim that return Host | |
Host |
Agent.getHost()
Returns the current host this agent is on. |
Methods in org.mates.sim with parameters of type Host | |
void |
Simulator.addHost(Host host)
Adds a host to the simulator |
void |
Simulator.removeHost(Host host)
Removes a host from the simulator. |
double |
Simulator.getLinkQuality(Host host1,
Host host2)
Returns the link quality between two hosts, according to the link model. |
java.util.Vector |
Simulator.getNeighbors(Host host)
Returns the neighbors of a host. |
boolean |
Simulator.migrate(Agent agent,
Host destination)
Initiates an agent migration. |
void |
Simulator.hostClicked(Host host,
java.awt.event.MouseEvent mouse_event)
Raises a new HostClickedEvent . |
protected boolean |
Agent.migrate(Host new_host)
Instructs this agent to migrate to a new host. |
void |
Agent.setHost(Host new_host)
Sets the host of this agent. |
Constructors in org.mates.sim with parameters of type Host | |
Simulator.MigrationInfo(Host s,
Host d,
double dstbt)
Default constructor. |
|
Agent(java.lang.String name,
Host host,
int priority)
Primary constructor for an agent. |
|
Agent(java.lang.String name,
Host host)
Constructor for an agent with a priority of 0. |
|
Agent(Host host)
Constructor for an agent with a priority of 0 and no name. |
Uses of Host in org.mates.sim.event.agent |
Methods in org.mates.sim.event.agent that return Host | |
Host |
AgentMigrationEvent.getSourceHost()
Returns the host from which the agent migrated. |
Host |
AgentMigrationEvent.getDestinationHost()
Returns the host to which the agent migrated. |
Host |
AgentArrivalEvent.getSourceHost()
Returns the host from which the agent was sent. |
Host |
AgentArrivalEvent.getDestinationHost()
Returns the host to which the agent arrived. |
Constructors in org.mates.sim.event.agent with parameters of type Host | |
AgentMigrationEvent(Agent agent,
Host from,
Host to)
|
|
AgentArrivalEvent(Agent agent,
Host arrived_at,
Host from)
|
Uses of Host in org.mates.sim.event.host |
Fields in org.mates.sim.event.host declared as Host | |
protected Host |
HostEvent.host
The host associated with this event. |
Methods in org.mates.sim.event.host that return Host | |
Host |
HostEvent.getHost()
Returns the host associated with this event. |
Constructors in org.mates.sim.event.host with parameters of type Host | |
HostDeathEvent(Host host)
|
|
HostClickedEvent(Host host,
java.awt.event.MouseEvent mouse_event)
Constructs a new HostMovedEvent . |
|
HostMovedEvent(Host host,
Position fromPosition,
Position toPosition)
Creates a new HostMovedEvent. |
|
HostCreatedEvent(Host host)
|
|
HostEvent(Host host)
Creates a new HostEvent associated with a specific host. |
Uses of Host in org.mates.sim.models |
Methods in org.mates.sim.models with parameters of type Host | |
double |
LinkModel.getLinkQuality(Host host1,
Host host2)
This function should return a real number in the range from 0.0 to 1.0, where 1.0 is a link of maximum quality. |
void |
CPUSchedulingModel.runAgents(Host host)
Iterates the agents on host . |
double |
TransportModel.getTransmissionRate(Host source,
Host destination)
Given two hosts, this function returns the amount of data that can be transmitted between them in one iteration. |
void |
MobilityModel.moveHost(Host host)
|
Uses of Host in org.mates.sim.models.cpu |
Methods in org.mates.sim.models.cpu with parameters of type Host | |
void |
DefaultCPUSchedulingModel.runAgents(Host host)
Iterates each agent exactly once. |
Uses of Host in org.mates.sim.models.link |
Methods in org.mates.sim.models.link with parameters of type Host | |
void |
TemporalLinkModel.setLinkQuality(Host fromHost,
Host toHost,
double quality,
long startTime)
Records the link quality between hosts starting at a specific time. |
double |
TemporalLinkModel.getLinkQuality(Host fromHost,
Host toHost,
long atTime)
Returns the link quality between fromHost and
toHost at time atTime . |
double |
TemporalLinkModel.getLinkQuality(Host host1,
Host host2)
|
double |
GridLinkModel.getLinkQuality(Host host1,
Host host2)
Returns the link quality from host1 to
host2 . |
double |
FullyConnectedLinkModel.getLinkQuality(Host host1,
Host host2)
Always returns 1.0 |
double |
QuadraticLinkModel.getLinkQuality(Host host1,
Host host2)
Determines the link quality of the directed connection between two hosts. |
Uses of Host in org.mates.sim.models.mobility |
Methods in org.mates.sim.models.mobility with parameters of type Host | |
void |
GridMobilityModel.moveHost(Host host)
Moves a host to an adjacent grid point. |
void |
StaticMobilityModel.moveHost(Host host)
This method does nothing; the host is never moved. |
void |
RandomWalkingMobilityModel.moveHost(Host host)
|
Uses of Host in org.mates.sim.models.transport |
Methods in org.mates.sim.models.transport with parameters of type Host | |
double |
DefaultTransportModel.getTransmissionRate(Host source,
Host destination)
Returns the transmission rate between two hosts. |
Uses of Host in org.mates.sim.network |
Methods in org.mates.sim.network that return Host | |
Host |
Topology.getHostByIndex(int index)
Accessor function for a host in the topology, based on its index. |
Host |
Topology.SingleSourceShortestPathData.getRoute(Host host)
Returns the next host in the route from the source host to host . |
Host |
Topology.SingleSourceShortestPathData.getSource()
Returns the source host for the shortest paths. |
Methods in org.mates.sim.network with parameters of type Host | |
Topology.SingleSourceShortestPathData |
Topology.singleSourceShortestPath(Host host)
Calculates the shortest path from host to every
other host in the network, using Dijkstra's algorithm
implemented with a FibonacciHeap . |
double |
Topology.calculateEccentricity(Host host)
Returns the eccentricity of a host. |
int |
Topology.calculateRadius(Host host)
Calculates the radius of a specific host in this topology. |
void |
Topology.update(Host host1,
Host host2,
double link)
Manually updates the link quality between two hosts. |
java.util.Vector |
Topology.getNeighborsHostCanHear(Host host)
Returns a vector of all of a host's neighbors that are capable of sending messages to the provided host. |
java.util.Vector |
Topology.getNeighborsHostCanTalkTo(Host host)
Returns a vector of all of a host's neighbors that are capable of receiving messages from the provided host. |
java.util.Vector |
Topology.getNeighbors(Host host)
This is equivalent to Topology.getNeighborsHostCanTalkTo(Host) . |
int |
Topology.numCommunicableHosts(Host host)
Returns the number of hosts that the provided host is connected to. |
java.util.Vector |
Topology.getCommunicableHosts(Host host)
Returns a vector of all of the hosts that the provided host can communicate with. |
int |
Topology.getHostIndex(Host host)
Returns the index of the provided host. |
double |
Topology.getLinkQuality(Host host1,
Host host2)
Returns the link quality between two hosts in the topology. |
Host |
Topology.SingleSourceShortestPathData.getRoute(Host host)
Returns the next host in the route from the source host to host . |
Uses of Host in org.mates.ui.graphical |
Methods in org.mates.ui.graphical that return Host | |
Host |
DefaultTopologyVisualizer.getHostAt(int x,
int y,
int radius)
Finds the host closest to a point. |
Host |
TopologyVisualizer.getHostAt(int x,
int y,
int radius)
Returns true if and only if a host exists within
radius pixels of the coordinate (x ,
y ). |
Methods in org.mates.ui.graphical with parameters of type Host | |
void |
DefaultTopologyVisualizer.highlightHost(Host host)
|
protected void |
DefaultTopologyVisualizer.paintRadioRanges(java.awt.Graphics graphics,
Topology topology,
double[][] network,
Host tool_tip_host,
Host highlighted_host)
Callback function for drawing the radio ranges. |
void |
TopologyVisualizer.highlightHost(Host host)
Highlights a host in the topology. |
|
MATES 3.0-rc2 | ||||||||||
PREV NEXT | FRAMES NO FRAMES |