public class Coupling
extends java.lang.Object
<coupling>
xml element.限定符和类型 | 字段和说明 |
---|---|
private java.util.Map<java.lang.Integer,Component> |
components
componentId : Component
|
private java.util.Map<java.lang.String,Couple> |
couples
"component1Id-component2Id" : Couple
|
private Dates |
dates |
private java.util.Map<java.lang.Integer,Grid> |
grids
gridId : Grid
|
private boolean |
rootRedirect |
private boolean |
stdoutRedirect |
private TimestepUnit |
timestepUnit |
private java.util.Map<java.lang.Integer,Transient> |
transients
transientId : Transient
|
构造器和说明 |
---|
Coupling() |
Coupling(boolean stdoutRedirect,
boolean rootRedirect,
java.util.Map<java.lang.Integer,Component> components,
java.util.Map<java.lang.Integer,Transient> transients,
java.util.Map<java.lang.Integer,Grid> grids,
Dates dates,
TimestepUnit timestepUnit,
java.util.Map<java.lang.String,Couple> couples) |
限定符和类型 | 方法和说明 |
---|---|
Component |
addComponent(Component component)
Adds given Component to the Coupling and updates transient_refs and grid_refs fields of
transient_grid_ref according new sets of transients and grids.
|
java.lang.String |
addCouple(Couple couple)
Adds a new couple to couplesMap and returns its id.
|
private boolean |
checkGridUsageByComponents(Grid g) |
private boolean |
checkTransientUsageByComponents(Transient t) |
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.Integer,Component> |
getComponentsMap() |
java.util.Map<java.lang.String,Couple> |
getCouples() |
Dates |
getDates() |
java.util.Map<java.lang.Integer,Grid> |
getGrids() |
TimestepUnit |
getTimestepUnit() |
java.util.Map<java.lang.Integer,Transient> |
getTransients() |
private boolean |
gridsContain(java.lang.String aliasName) |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isRootRedirect() |
boolean |
isStdoutRedirect() |
void |
removeComponent(Component component) |
void |
setComponents(java.util.Map<java.lang.Integer,Component> components) |
void |
setCouples(java.util.Map<java.lang.String,Couple> couples) |
void |
setDates(Dates dates) |
void |
setGrids(java.util.Map<java.lang.Integer,Grid> grids) |
void |
setRootRedirect(boolean rootRedirect) |
void |
setStdoutRedirect(boolean stdoutRedirect) |
void |
setTimestepUnit(TimestepUnit timestepUnit) |
void |
setTransients(java.util.Map<java.lang.Integer,Transient> transients) |
private boolean |
transientsContain(java.lang.String transientStandardName) |
private java.util.Map<java.lang.Integer,Component> components
private java.util.Map<java.lang.Integer,Transient> transients
private java.util.Map<java.lang.Integer,Grid> grids
private Dates dates
private TimestepUnit timestepUnit
private boolean stdoutRedirect
private boolean rootRedirect
private java.util.Map<java.lang.String,Couple> couples
public Coupling()
public Coupling(boolean stdoutRedirect, boolean rootRedirect, java.util.Map<java.lang.Integer,Component> components, java.util.Map<java.lang.Integer,Transient> transients, java.util.Map<java.lang.Integer,Grid> grids, Dates dates, TimestepUnit timestepUnit, java.util.Map<java.lang.String,Couple> couples)
public boolean isEmpty()
public Component addComponent(Component component)
The Component object will be added to this Coupling's
Map<Integer, Component>
. The Component's
transients and grids will be added to this Coupling's
Map<Integer, Transient>
and
Map<Integer, Grid>
, if they do not exist yet with
their respective transient standard name or alias name.
component
- component to be addedpublic void removeComponent(Component component)
private boolean checkGridUsageByComponents(Grid g)
private boolean checkTransientUsageByComponents(Transient t)
public java.lang.String addCouple(Couple couple)
couple
- public java.util.Map<java.lang.Integer,Component> getComponentsMap()
public java.util.Map<java.lang.Integer,Transient> getTransients()
transientId:Transient
public java.util.Map<java.lang.Integer,Grid> getGrids()
public Dates getDates()
public TimestepUnit getTimestepUnit()
public java.util.Map<java.lang.String,Couple> getCouples()
public void setComponents(java.util.Map<java.lang.Integer,Component> components)
public void setTransients(java.util.Map<java.lang.Integer,Transient> transients)
public void setGrids(java.util.Map<java.lang.Integer,Grid> grids)
public void setDates(Dates dates)
public boolean isStdoutRedirect()
public void setStdoutRedirect(boolean stdoutRedirect)
public boolean isRootRedirect()
public void setRootRedirect(boolean rootRedirect)
public void setTimestepUnit(TimestepUnit timestepUnit)
public void setCouples(java.util.Map<java.lang.String,Couple> couples)
private boolean transientsContain(java.lang.String transientStandardName)
private boolean gridsContain(java.lang.String aliasName)
public int hashCode()
hashCode
在类中 java.lang.Object
public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object