org.primordion.memcomp.base
Class XhAbstractBraneCalc

java.lang.Object
  extended byorg.primordion.xholon.base.Xholon
      extended byorg.primordion.xholon.base.XholonWithPorts
          extended byorg.primordion.memcomp.base.XhAbstractBraneCalc
All Implemented Interfaces:
IXholon
Direct Known Subclasses:
XhBraneCalc1

public class XhAbstractBraneCalc
extends XholonWithPorts

Brane Calculus.

Since:
0.3 (Created on Jan 14, 2006)
Author:
Ken Webb

Field Summary
static int P_MEMBRANEP
           
static int P_MEMBRANEQ
           
static int P_PATCH
           
 java.lang.String roleName
           
 
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.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
XhAbstractBraneCalc()
           
 
Method Summary
 void bud(IXholon membraneP, IXholon membraneQ, IXholon patchS)
          Bud - Split off an inner membrane.
 void drip(IXholon membraneP, IXholon patchS)
          Drip - Split off zero inner membranes.
 void exo(IXholon membraneP, IXholon membraneQ)
          Exo - Exocytosis
 java.lang.String getRoleName()
          Get name of the role played by this Xholon within a specific context.
 void initialize()
          Initialize the tree node.
 void mate(IXholon membraneP, IXholon membraneQ, IXholon patchS)
          Mate - Merge two membranes.
 void phago(IXholon membraneP, IXholon membraneQ, IXholon patchS)
          Phago - Phagocytosis
 void pino(IXholon membraneP, IXholon patchS)
          Pino - Pinocytosis.
 void setRoleName(java.lang.String roleName)
          Set name of the role played by this Xholon within a specific context.
 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 org.primordion.xholon.base.Xholon
act, appendChild, appendChild, appendChild, cleanup, configure, createStructure, decVal, decVal, depth, draw, getChildNodes, getFirstChild, getFirstSibling, getId, getLastChild, getLastSibling, getName, getNeighbors, getNextId, getNextSibling, getNthChild, getNthSibling, getNumChildren, getNumSiblings, getParentNode, getPreviousSibling, getRootNode, getSiblings, getSizeMessageQ, getUid, getVal_boolean, getVal_byte, getVal_char, getVal_double, getVal_float, getVal_int, getVal_long, getVal_Object, getVal_short, getVal_String, getVal, getXhc, getXhcId, getXhcName, getXhType, handleNodeSelection, hasAncestor, hasChildNodes, hasChildOrSiblingNodes, hasNextSibling, hasParentNode, height, incVal, incVal, initStatics, inOrderPrint, insertAfter, insertBefore, insertFirstChild, isExternal, isInternal, isLeaf, isRootNode, performActivity, performActivity, performBooleanActivity, performBooleanActivity, performDoubleActivity, performGuard, performVoidActivity, postAct, postOrderPrint, postReconfigure, preAct, preConfigure, preOrderPrint, preReconfigure, print, println, processMessageQ, processReceivedMessage, reconfigure, remove, removeChild, resetNextId, sendMessage, sendMessage, sendMessage, setAttributeVal, setFactory, setFirstChild, setId, setNextSibling, setParentChildLinks, setParentNode, setParentSiblingLinks, setSizeMessageQ, setUid, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVariableValue, setXhc, swapNode, treeSize, writeXml
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

P_MEMBRANEP

public static final int P_MEMBRANEP
See Also:
Constant Field Values

P_MEMBRANEQ

public static final int P_MEMBRANEQ
See Also:
Constant Field Values

P_PATCH

public static final int P_PATCH
See Also:
Constant Field Values

roleName

public java.lang.String roleName
Constructor Detail

XhAbstractBraneCalc

public XhAbstractBraneCalc()
Method Detail

initialize

public void initialize()
Description copied from interface: IXholon
Initialize the tree node. Typically this is only used to re-initialize a node, such as when it is reused through the TreeNodeFactoryStatic.

Specified by:
initialize in interface IXholon
Overrides:
initialize in class XholonWithPorts

setRoleName

public void setRoleName(java.lang.String roleName)
Description copied from interface: IXholon
Set name of the role played by this Xholon within a specific context.

Specified by:
setRoleName in interface IXholon
Overrides:
setRoleName in class Xholon

getRoleName

public java.lang.String getRoleName()
Description copied from interface: IXholon
Get name of the role played by this Xholon within a specific context.

Specified by:
getRoleName in interface IXholon
Overrides:
getRoleName in class Xholon

phago

public void phago(IXholon membraneP,
                  IXholon membraneQ,
                  IXholon patchS)
Phago - Phagocytosis

Membrane P with its internal contents, and part of the fluid environment that surrounds membrane P, are engulfed by membrane Q.

Parameters:
membraneP - An independent membrane which will be taken inside membraneQ.
membraneQ - An independent membrane that will take membraneP and patchS inside it.
patchS - A patch of membraneP.

exo

public void exo(IXholon membraneP,
                IXholon membraneQ)
Exo - Exocytosis

The contents of membrane P are expelled to the fluid environment surrounding membrane Q, while membrane P itself becomes part of membrane Q.

Parameters:
membraneP - The initially internal membrane.
membraneQ - The initially external membrane.

pino

public void pino(IXholon membraneP,
                 IXholon patchS)
Pino - Pinocytosis.

Membrane P engulfs part of the surrounding environment.


mate

public void mate(IXholon membraneP,
                 IXholon membraneQ,
                 IXholon patchS)
Mate - Merge two membranes.

Parameters:
membraneP - A membrane.
membraneQ - Another membrane.
patchS - A patch of membrane.

bud

public void bud(IXholon membraneP,
                IXholon membraneQ,
                IXholon patchS)
Bud - Split off an inner membrane.

Parameters:
membraneP - An initially inner membrane.
membraneQ - An initially outer membrane.
patchS - A patch of membrane.

drip

public void drip(IXholon membraneP,
                 IXholon patchS)
Drip - Split off zero inner membranes.

Parameters:
membraneP - A membrane.
patchS - A patch of membrane.

toString

public java.lang.String toString()
Overrides:
toString in class Xholon