JOpt.SDK
Interface INode

All Superinterfaces:
IDistanceMatrixEntry, IViolation
All Known Subinterfaces:
IGeoNode, IScheduledNode, ITimeWindowNode
All Known Implementing Classes:
TimeWindowGeoNode

public interface INode
extends IViolation, IDistanceMatrixEntry

INode define single work orders to be performed within a schedule. Each node has different properties like required skills, workload, time-window, loading restrictions. Together with resources nodes build the basic input for each optimization run.


Method Summary
 double[] getLoad()
           
 java.lang.String getNodeId()
           
 int getPriority()
           
 java.lang.String getType()
           
 void setLoad(double[] load)
           
 void setNodeId(java.lang.String nodeId)
           
 void setPriority(int priority)
           
 void setType(java.lang.String type)
           
 
Methods inherited from interface JOpt.SDK.IDistanceMatrixEntry
getDistMatrixId, setDistMatrixId
 

Method Detail

setNodeId

public void setNodeId(java.lang.String nodeId)
Parameters:
nodeId - the node's unique id

getNodeId

public java.lang.String getNodeId()
Returns:
the node's unique id

setPriority

public void setPriority(int priority)
Parameters:
priority - the node's priority. Priorities define whether it is mission critical to be in time at a specific node or not

getPriority

public int getPriority()
Returns:
the node's priority

setType

public void setType(java.lang.String type)
Parameters:
type - the type of the node to be compared to the corresponding permitted types for each resource. If this value is not set, any arbitrary resource can service this node. Node types can also be used whenever specific skills are required to serve a node.

getType

public java.lang.String getType()
Returns:
the node type

setLoad

public void setLoad(double[] load)
Parameters:
load - an arbitrary load vector for this node to be compared to the corresponding capacity vector of each resource

getLoad

public double[] getLoad()
Returns:
load vector for this node