public class EnsembleOrigin extends java.lang.Object implements Origin
Constructor and Description |
---|
EnsembleOrigin(Node node,
java.lang.String name,
Origin[] nodeOrigins) |
Modifier and Type | Method and Description |
---|---|
EnsembleOrigin |
clone()
Note: the clone references the same copies of the underlying node origins.
|
EnsembleOrigin |
clone(Node node)
Clone method that changes necessary parameters to point to a new parent,
for use in cloning ensembles, etc.
|
int |
getDimensions() |
java.lang.String |
getName() |
Node |
getNode() |
Origin[] |
getNodeOrigins() |
boolean |
getRequiredOnCPU() |
InstantaneousOutput |
getValues() |
void |
setRequiredOnCPU(boolean val) |
void |
setValues(InstantaneousOutput values) |
public EnsembleOrigin(Node node, java.lang.String name, Origin[] nodeOrigins)
node
- The parent Nodename
- Name of this OriginnodeOrigins
- Origins on individual Nodes that are combined to make this
Origin. Each of these is expected to have dimension 1, but this is not enforced.
Other dimensions are ignored.public java.lang.String getName()
getName
in interface Origin
Origin.getName()
public int getDimensions()
getDimensions
in interface Origin
Origin.getDimensions()
public Origin[] getNodeOrigins()
public InstantaneousOutput getValues() throws SimulationException
getValues
in interface Origin
SimulationException
- if there is any problem retrieving valuesOrigin.getValues()
public void setValues(InstantaneousOutput values)
public void setRequiredOnCPU(boolean val)
setRequiredOnCPU
in interface Origin
public boolean getRequiredOnCPU()
getRequiredOnCPU
in interface Origin
public Node getNode()
getNode
in interface Origin
Origin.getNode()
public EnsembleOrigin clone() throws java.lang.CloneNotSupportedException
public EnsembleOrigin clone(Node node) throws java.lang.CloneNotSupportedException
Origin