tassl.workflow.resources
Class Node
java.lang.Object
tassl.workflow.resources.Node
- All Implemented Interfaces:
- java.io.Serializable
public class Node
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Constructor Summary |
Node(int worker,
double c,
double perf)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Node
public Node(int worker,
double c,
double perf)
getName
public java.lang.String getName()
getIsUp
public boolean getIsUp()
getPerformance
public double getPerformance()
getCost
public double getCost()
getTotalWorkers
public int getTotalWorkers()
getMinPort
public int getMinPort()
getMaxPort
public int getMaxPort()
getActiveWorkers
public int getActiveWorkers()
setMinPort
public void setMinPort(int minPort)
setMaxPort
public void setMaxPort(int maxPort)
setIsUp
public void setIsUp(boolean status)
setPerformance
public void setPerformance(double performance)
setCost
public void setCost(double cost)
setTotalWorkers
public void setTotalWorkers(int totalWorkers)
setActiveWorkers
public void setActiveWorkers(int activeWorkers)
decrementActiveWorkers
public void decrementActiveWorkers(int numWorkers)
setName
public void setName(java.lang.String name)
getFreePort
public int getFreePort()
releasePort
public void releasePort(java.lang.Integer port)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object