|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.primordion.xholon.base.Xholon
org.primordion.xholon.base.XholonWithPorts
org.primordion.dynsys.app.XhTrain
Dynamical Systems - Train.
| Field Summary | |
double |
acceleration
|
double |
force
|
double |
friction
|
static double |
g
|
static double |
k
|
double |
mass
|
static double |
mu
|
static int |
P_Mass1
|
static int |
P_Mass2
|
static int |
P_Spring
|
java.lang.String |
roleName
|
double |
sumOfForces
|
static int |
timeStepMultiplier
|
double |
velocity
|
double |
xPosition
|
| Fields inherited from class org.primordion.xholon.base.XholonWithPorts |
port |
| Fields inherited from class org.primordion.xholon.base.Xholon |
DEFAULT_LEVEL, interaction, interactionsEnabled |
| Fields inherited from interface org.primordion.dynsys.app.CeTrain |
CarCE, CouplerCE, EngineCE, includeCE, SpringCE, ToyTrainCE, TrackCE, TrainSystemCE, XholonClassCE |
| Fields inherited from interface org.primordion.xholon.base.IXholon |
DEFAULT_SIZE_MSG_Q, NINCLUDE_PSC, NINCLUDE_PSx, NINCLUDE_PxC, NINCLUDE_Pxx, NINCLUDE_xSC, NINCLUDE_xSx, NINCLUDE_xxC, NINCLUDE_xxx |
| Constructor Summary | |
XhTrain()
|
|
| Method Summary | |
void |
act()
Do some action during this time step. |
static int |
getPlotType()
Get the type of data to plot. |
java.lang.String |
getRoleName()
Get name of the role played by this Xholon within a specific context. |
double |
getVal()
Get the value of a "double" maintained by this xholon instance. |
void |
initialize()
Initialize the tree node. |
static void |
setPlotType(int pType)
Set which type of data to plot on a chart. |
void |
setRoleName(java.lang.String roleName)
Set name of the role played by this Xholon within a specific context. |
void |
setVal(double val)
Set the value of a "double" maintained by this xholon instance. |
java.lang.String |
toString()
|
| Methods inherited from class org.primordion.xholon.base.XholonWithPorts |
configure, getMaxPorts, getPort, isActiveObject, isBound, isContainer, isPassiveObject, postConfigure, setMaxPorts, setPorts, terminate |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int P_Spring
public static final int P_Mass1
public static final int P_Mass2
public static final int timeStepMultiplier
public static final double k
public static final double mu
public static final double g
public double mass
public double force
public double acceleration
public double velocity
public double xPosition
public double friction
public double sumOfForces
public java.lang.String roleName
| Constructor Detail |
public XhTrain()
| Method Detail |
public void initialize()
IXholon
initialize in interface IXholoninitialize in class XholonWithPortspublic double getVal()
IXholon
getVal in interface IXholongetVal in class Xholonpublic void setVal(double val)
IXholon
setVal in interface IXholonsetVal in class Xholonpublic void setRoleName(java.lang.String roleName)
IXholon
setRoleName in interface IXholonsetRoleName in class Xholonpublic java.lang.String getRoleName()
IXholon
getRoleName in interface IXholongetRoleName in class Xholonpublic void act()
IXholon
act in interface IXholonact in class Xholonpublic static void setPlotType(int pType)
pType - The type of data.public static int getPlotType()
public java.lang.String toString()
toString in class Xholon
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||