repast.simphony.agents.model.bind.converters
Class BehaviorStepConverter

java.lang.Object
  extended by repast.simphony.agents.model.bind.converters.AbstractLocationConverter
      extended by repast.simphony.agents.model.bind.converters.AgentPropertyorStepConverter
          extended by repast.simphony.agents.model.bind.converters.AgentPropertyorStepWithLabelConverter
              extended by repast.simphony.agents.model.bind.converters.BehaviorStepConverter
All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher

public class BehaviorStepConverter
extends AgentPropertyorStepWithLabelConverter

Author:
greifa (Adapted by Michael J. North for Use in Repast Simphony from Alexander Greif’s Flow4J-Eclipse (http://flow4jeclipse.sourceforge.net/docs/index.html), with Thanks to the Original Author)

Field Summary
static String COMMENT
           
static String COMPILEDNAME
           
static String EXCEPTIONS
           
static String PARAMETERS
           
static String RETURNTYPE
           
static String SCHEDULEANNOTATIONDURATION
           
static String SCHEDULEANNOTATIONINTERVAL
           
static String SCHEDULEANNOTATIONPICK
           
static String SCHEDULEANNOTATIONPRIORITY
           
static String SCHEDULEANNOTATIONSHUFFLE
           
static String SCHEDULEANNOTATIONSTART
           
static String VISIBILITY
           
static String WATCHANNOTATIONID
           
static String WATCHANNOTATIONPICK
           
static String WATCHANNOTATIONQUERY
           
static String WATCHANNOTATIONTARGETCLASSNAME
           
static String WATCHANNOTATIONTARGETFIELDNAMES
           
static String WATCHANNOTATIONTRIGGERCONDITION
           
static String WATCHANNOTATIONTRIGGERDELTA
           
static String WATCHANNOTATIONTRIGGERPRIORITY
           
static String WATCHANNOTATIONTRIGGERSCHEDULE
           
 
Constructor Summary
BehaviorStepConverter()
           
 
Method Summary
 boolean canConvert(Class type)
           
protected  String getFlowletElementName()
           
protected  PropertyOrStepBind getNewFlowletBind()
           
 void marshalBody(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
           
protected  void unmarshalBody(PropertyOrStepBind target, com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
           
 
Methods inherited from class repast.simphony.agents.model.bind.converters.AgentPropertyorStepConverter
marshal, unmarshal
 
Methods inherited from class repast.simphony.agents.model.bind.converters.AbstractLocationConverter
unmarshal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCHEDULEANNOTATIONSTART

public static final String SCHEDULEANNOTATIONSTART
See Also:
Constant Field Values

SCHEDULEANNOTATIONPICK

public static final String SCHEDULEANNOTATIONPICK
See Also:
Constant Field Values

SCHEDULEANNOTATIONINTERVAL

public static final String SCHEDULEANNOTATIONINTERVAL
See Also:
Constant Field Values

SCHEDULEANNOTATIONPRIORITY

public static final String SCHEDULEANNOTATIONPRIORITY
See Also:
Constant Field Values

SCHEDULEANNOTATIONDURATION

public static final String SCHEDULEANNOTATIONDURATION
See Also:
Constant Field Values

SCHEDULEANNOTATIONSHUFFLE

public static final String SCHEDULEANNOTATIONSHUFFLE
See Also:
Constant Field Values

WATCHANNOTATIONID

public static final String WATCHANNOTATIONID
See Also:
Constant Field Values

WATCHANNOTATIONQUERY

public static final String WATCHANNOTATIONQUERY
See Also:
Constant Field Values

WATCHANNOTATIONTARGETCLASSNAME

public static final String WATCHANNOTATIONTARGETCLASSNAME
See Also:
Constant Field Values

WATCHANNOTATIONTARGETFIELDNAMES

public static final String WATCHANNOTATIONTARGETFIELDNAMES
See Also:
Constant Field Values

WATCHANNOTATIONTRIGGERCONDITION

public static final String WATCHANNOTATIONTRIGGERCONDITION
See Also:
Constant Field Values

WATCHANNOTATIONTRIGGERSCHEDULE

public static final String WATCHANNOTATIONTRIGGERSCHEDULE
See Also:
Constant Field Values

WATCHANNOTATIONTRIGGERDELTA

public static final String WATCHANNOTATIONTRIGGERDELTA
See Also:
Constant Field Values

WATCHANNOTATIONTRIGGERPRIORITY

public static final String WATCHANNOTATIONTRIGGERPRIORITY
See Also:
Constant Field Values

WATCHANNOTATIONPICK

public static final String WATCHANNOTATIONPICK
See Also:
Constant Field Values

COMMENT

public static final String COMMENT
See Also:
Constant Field Values

VISIBILITY

public static final String VISIBILITY
See Also:
Constant Field Values

RETURNTYPE

public static final String RETURNTYPE
See Also:
Constant Field Values

COMPILEDNAME

public static final String COMPILEDNAME
See Also:
Constant Field Values

PARAMETERS

public static final String PARAMETERS
See Also:
Constant Field Values

EXCEPTIONS

public static final String EXCEPTIONS
See Also:
Constant Field Values
Constructor Detail

BehaviorStepConverter

public BehaviorStepConverter()
Method Detail

canConvert

public boolean canConvert(Class type)

getFlowletElementName

protected String getFlowletElementName()
Specified by:
getFlowletElementName in class AgentPropertyorStepConverter

getNewFlowletBind

protected PropertyOrStepBind getNewFlowletBind()
Specified by:
getNewFlowletBind in class AgentPropertyorStepConverter

marshalBody

public void marshalBody(Object source,
                        com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
                        com.thoughtworks.xstream.converters.MarshallingContext context)
Overrides:
marshalBody in class AgentPropertyorStepWithLabelConverter

unmarshalBody

protected void unmarshalBody(PropertyOrStepBind target,
                             com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
                             com.thoughtworks.xstream.converters.UnmarshallingContext context)
Overrides:
unmarshalBody in class AgentPropertyorStepWithLabelConverter