public class Transition extends XholonWithPorts implements IKinetics
port
K_UNSPECIFIED, KINETICS_BASIC_PTNET, KINETICS_CUSTOM, KINETICS_DEFAULT, KINETICS_DIFFUSION, KINETICS_GRID, KINETICS_LOGIC_AND, KINETICS_LOGIC_NOT, KINETICS_LOGIC_OR, KINETICS_MASS_ACTION, KINETICS_MAX_VALID, KINETICS_MAXIMAL_PARALLELISM, KINETICS_MICHAELIS_MENTEN, KINETICS_MIN_VALID, KINETICS_NULL, KINETICS_UNSPECIFIED, KM_UNSPECIFIED, LOGIC_FALSE, LOGIC_TRUE, P_UNSPECIFIED, VMAX_UNSPECIFIED
DEFAULT_SIZE_MSG_Q, DEFAULT_SIZE_SYSTEM_MSG_Q, GETNAME_DEFAULT, GETNAME_LOCALPART_ID, GETNAME_NOROLENAME, GETNAME_ROLENAME_OR_CLASSNAME, GETNAME_ROLENAMESEP_, GETNAME_SIZE_TEMPLATE, NINCLUDE_PSC, NINCLUDE_PSx, NINCLUDE_PxC, NINCLUDE_Pxx, NINCLUDE_xSC, NINCLUDE_xSx, NINCLUDE_xxC, NINCLUDE_xxx, XHOLON_ID_DEFAULT, XHOLON_ID_NULL
Constructor and Description |
---|
Transition() |
Modifier and Type | Method and Description |
---|---|
void |
actNr()
This method is intended to be called by QueueTransitions.
|
boolean |
couldUseDiffusion()
Could this transition use diffusion kinetics?
// TODO should the in/out arcs have the same weight ?
|
void |
decVal(double dec)
Decrement an internal double value by a specified amount.
|
java.util.List |
getAllPorts()
Get a list of all ports exiting from this xholon.
|
double |
getCount() |
double |
getDt() |
IXholon |
getInputArcs() |
double |
getK()
Get reaction rate/constant k.
|
int |
getKineticsType()
Get kinetics type.
|
double |
getKm()
Get Michaelis-Menten Km.
|
IXholon |
getOutputArcs() |
double |
getP()
Get probability p.
|
java.lang.String |
getRoleName()
Get name of the role played by this Xholon within a specific context.
|
java.lang.String |
getSymbol() |
int |
getVal_int()
Get the value of a "int" maintained by this xholon instance.
|
double |
getVal()
Get the value of a "double" maintained by this xholon instance.
|
double |
getVmax()
Get Michaelis-Menten Vmax.
|
void |
incVal(double inc)
Increment an internal double value by a specified amount.
|
static boolean |
isShouldWriteSequenceDiagram() |
void |
postConfigure()
Perform some action, typically once at start up; MAY be overridden.
|
int |
setAttributeVal(java.lang.String attrName,
java.lang.String attrVal)
Set the value of an attribute, given it's name.
|
void |
setCount(double count) |
void |
setDt(double dt)
This should only be called by the Petri net (QueueTransitions).
|
void |
setInputArcs(IXholon inputArcs) |
void |
setK(double k)
Set reaction rate/constant k.
|
void |
setKineticsType(int kineticsType)
Set kinetics type.
|
void |
setKm(double km)
Set Michaelis-Menten Km.
|
void |
setOutputArcs(IXholon outputArcs) |
void |
setP(double p)
Set probability p.
|
void |
setRoleName(java.lang.String roleName)
Set name of the role played by this Xholon within a specific context.
|
static void |
setShouldWriteSequenceDiagram(boolean shouldWriteSequenceDiagram) |
void |
setSymbol(java.lang.String symbol) |
void |
setVal(double val)
Set the value of a "double" maintained by this xholon instance.
|
void |
setVal(int val)
Set the value of a "int" maintained by this xholon instance.
|
void |
setVal(java.lang.String val)
Set the value of a "String" maintained by this xholon instance.
|
void |
setVmax(double vmax)
Set Michaelis-Menten Vmax.
|
void |
toXmlAttributes(IXholon2Xml xholon2xml,
IXmlWriter xmlWriter)
Write a set of attributes formatted as XML.
|
configure, configurePorts, getPort, getPort, initialize, isActiveObject, isBound, isContainer, isPassiveObject, setPort, setPort, setPorts, terminate, toString
act, appendChild, appendChild, appendChild, appendsOwnChildren, bindPorts, cleanup, compareTo, configure, consoleLog, decVal, depth, doAction, equals, findFirstChildWithXhClass, findFirstChildWithXhClass, forwardMessage, forwardSyncMessage, getActionList, getAnnotation, getApp, getAttributeNodeXh, getAttributeXh, getChildNodes, getClassNode, getClassNode, getFactory, getFirstChild, getFirstSibling, getId, getInteraction, getInteractionsEnabled, getIQueueImplName, getLastChild, getLastSibling, getLogger, getMsgQ, getName, getName, getNeighbors, getNextSibling, getNthChild, getNthSibling, getNumChildren, getNumLevels, getNumSiblings, getParentNode, getPreviousSibling, getRootNode, getSelfAndSiblings, getSelfAndSiblingsIndex, getService, getSiblings, getSystemMsgQ, getUid, getUri, getVal_boolean, getVal_byte, getVal_char, getVal_double, getVal_float, getVal_long, getVal_Object, getVal_short, getVal_String, getXhc, getXhcId, getXhcName, getXholon2Xml, getXhType, getXml2Xholon, getXPath, handleNodeSelection, handleNodeSelection, hasAncestor, hasAnnotation, hasAttributeXh, hasChildNodes, hasChildOrSiblingNodes, hasNextSibling, hasParentNode, hasSiblingNodes, height, incVal, initStatics, inOrderPrint, insertAfter, insertAfter, insertAfter, insertBefore, insertBefore, insertBefore, insertFirstChild, isAttributeHandler, isExternal, isInternal, isLeaf, isRootNode, isUniqueSibling, isUniqueSiblingRoleName, performActivity, performActivity, performBooleanActivity, performBooleanActivity, performDoubleActivity, performGuard, performVoidActivity, postAct, postOrderPrint, postReconfigure, preAct, preConfigure, preOrderPrint, preReconfigure, print, println, processMessageQ, processReceivedMessage, processReceivedSyncMessage, processSystemMessageQ, reconfigure, registerMessageForwardee, remove, removeAttributeNodeXh, removeAttributeXh, removeChild, replaceNode, searchForReferencingNodes, searchForReferencingNodesRecurse, sendMessage, sendMessage, sendMessage, sendSyncMessage, sendSyncMessage, sendSyncMessage, sendSystemMessage, sendSystemMessage, setActionList, setAnnotation, setApp, setAttributeNodeXh, setAttributeXh, setFirstChild, setId, setName, setNextSibling, setParentChildLinks, setParentNode, setParentSiblingLinks, setUid, setUri, setVal_boolean, setVal_byte, setVal_char, setVal_double, setVal_float, setVal_int, setVal_long, setVal_Object, setVal_short, setVal_String, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setXhc, showAnnotation, swapNode, toXml, toXmlAttribute, toXmlText, treeSize, visit
public void setRoleName(java.lang.String roleName)
IXholon
setRoleName
in interface IXholon
setRoleName
in class Xholon
roleName
- An optional name that identifies the role.public java.lang.String getRoleName()
IXholon
getRoleName
in interface IXholon
getRoleName
in class Xholon
public void setVal(double val)
IXholon
public void setVal(int val)
IXholon
public void setVal(java.lang.String val)
IXholon
public double getVal()
IXholon
public int getVal_int()
IXholon
getVal_int
in interface IXholon
getVal_int
in class Xholon
public void incVal(double inc)
IXholon
public void decVal(double dec)
IXholon
public void postConfigure()
IXholon
postConfigure
in interface IXholon
postConfigure
in class XholonWithPorts
public java.util.List getAllPorts()
IXholon
getAllPorts
in interface IXholon
getAllPorts
in class Xholon
public void actNr()
actNr
in interface IXholon
actNr
in class Xholon
Xholon.actNr()
public boolean couldUseDiffusion()
true if
- there are the same number of inputPlace and outputPlace, and
- all inputPlace and outputPlace are the same type
else false
public int setAttributeVal(java.lang.String attrName, java.lang.String attrVal)
IXholon
setAttributeVal
in interface IXholon
setAttributeVal
in class Xholon
attrName
- The name of an attribute.attrVal
- The intended value of the attribute.public void toXmlAttributes(IXholon2Xml xholon2xml, IXmlWriter xmlWriter)
IXholon
toXmlAttributes
in interface IXholon
toXmlAttributes
in class Xholon
xmlWriter
- The XML writer.public IXholon getInputArcs()
public void setInputArcs(IXholon inputArcs)
public IXholon getOutputArcs()
public void setOutputArcs(IXholon outputArcs)
public double getP()
public void setP(double p)
p
- public double getK()
public void setK(double k)
k
- public double getCount()
public void setCount(double count)
public static boolean isShouldWriteSequenceDiagram()
public static void setShouldWriteSequenceDiagram(boolean shouldWriteSequenceDiagram)
public int getKineticsType()
IKinetics
getKineticsType
in interface IKinetics
public void setKineticsType(int kineticsType)
IKinetics
setKineticsType
in interface IKinetics
public double getVmax()
public void setVmax(double vmax)
vmax
- public double getKm()
public void setKm(double km)
km
- public double getDt()
public void setDt(double dt)
dt
- public java.lang.String getSymbol()
public void setSymbol(java.lang.String symbol)