Alt |
Esc |
Ctrl-O |
Ctrl-N |
Ctrl-O |
Ctrl-S |
Alt-Q |
Ctrl-Z |
Ctrl-X |
Ctrl-C |
Ctrl-V |
Input arc | Output arc | Meaning |
< a > | < a > | Move a token a |
< 2¢a > | < 2¢a > | Move two identical tokens a |
< 2¢a > | < 3¢a > | Not allowed because of different multiplicities |
< a > | < a(x=5) > | Move token a and change attribute x to 5 |
< a > | < copy a > | Create a copy of token a |
< a > | < new({x=a.y}) > | Create a new token and set attribute x to value of attribute y of a |
< > | < new({}) > | Create a new token with default attribute values |
Priority | Operator | Type | Executed operation |
8 | (¼) | brackets | |
7 | +,- | arithmetic | unary plus, unary minus |
! | logical | NOT | |
6 | *,/,% | arithmetic | multiplication, division |
5 | +,- | arithmetic | addition, substraction |
4 | < , < = | arithmetic | lower than, or lower or equal |
> , > = | arithmetic | higher than, or higher or equal | |
3 | ==, != | primitive | equal, unequal |
2 | && | logical | AND |
1 | || | logical | OR |
Type | Name | Default value | Examples |
Integer | int | 0 | 732 |
Real | real | 0,0 | 9,56 |
Boolean | bool | false | true, false |
String | string | "" | "foo" |
Date/Time | DateTime | 0:0:0@1/1/0 | NOW, 11:23:46@03/27/2007 |
|
|
|
|
|
Parameter | Description |
-s | Disables the database integration (optional) |
-m MODELDIR | Path to the model directory to resolve relative paths |
-i INTEGRATION | Specifies the integration.props file for data integration |
var newNet = Net.create();An existing model can be loaded by:
var oldNet = Net.load(filename.xml);After this step it is for example possible to search for places by name or to add transitions. All possible objects and functions are described in Appendix D. To include external data into the model, the data needs to be successfully integrated into the internal data warehouse. Two methods exist: directly integrate external data or integrate formerly integrated data which are available in a XML file. Data in the internal warehouse can be queried by using XPath queries. A reference documentation to XPath is available in Appendix D.2. Three different result types exist: (1) results that are returned by string and can be analyzed by Javascript string functions, (2) results that are returned as a string array where each element matches one result, and (3) results that are returned by ResultNodes. The last type is the most flexible type. A ResultNode is a simplified XML-DOM-Node which has functions to get the value, its attributes, and the child nodes. With this result type it is possible to work with complex subtrees as results.
Technische Universität BerlinAfter your successful registration, we will send an email with login name and password for the TimeNET download page. Use your web browser to download the files you need. According to your target architecture, you should download one of the available precompiled TimeNET files. Please note that the password may be changed without further notice. If you are a registered user of TimeNET, you can obtain the current password by email at any time.
Prozessdatenverarbeitung und Robotik
Armin Zimmermann
Sekr. FR 2-2
Franklinstr. 28/29
10587 Berlin, Germany
Fax: +49-30-31.42.11.16
<net id="0" netclass="SCPN" xmlns="http://pdv.cs.tu-berlin.de/TimeNET/schema/SCPN" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pdv.cs.tu-berlin.de/TimeNET/schema/SCPN etc/schemas/SCPN.xsd">
<net id="0" netclass="eDSPN" xmlns="http://pdv.cs.tu-berlin.de/TimeNET/schema/eDSPN" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pdv.cs.tu-berlin.de/TimeNET/schema/eDSPN etc/schemas/eDSPN.xsd">
Class Methods | ||
Function | Parameter | Description |
create | Creates a new, empty SCPN model | |
load | filename | Creates a model from the file filename |
Object Methods | ||
Function | Parameter | Description |
importLib | filename | Imports a library from file filename |
check | Validates the model against the XML schema for SCPN | |
toFile | filename | Exports the model into the file filename |
getPlaces | Returns a JavaScript-Array with all Place objects of the model | |
getTransitions | Returns a JavaScript-Array with all Transition objects of the model | |
getArcs | Returns a JavaScript-Array with all Arc objects of the model | |
Class Methods | ||
Function | Parameter | Description |
add | net name tokentype capacity queue watch initialMarking | Creates a place with the given parameters and adds this place to the given net |
withName | net name | Searches for a place with name in the model net |
Object Methods | ||
Function | Parameter | Description |
getID | Returns the internal ID of the place | |
getName | Returns the name of the place | |
getTokentype | Returns the tokentype of the place | |
getCapacity | Returns the capacity of the place | |
getQueue | Returns the queue type of the place | |
getWatch | Returns the watch attribute of the place | |
getInitialMarking | Returns the initial marking of the place | |
setName | name | Sets the name of the place |
setTokentype | tokentype | Sets the tokentype of the place |
setCapacity | capacity | Sets the capacity of the place |
setQueue | queue | Sets the queue type of the place |
setWatch | watch | Sets the watch attribute of the place |
setInitialMarking | initialMarking | Sets the initial marking of the place |
Class Methods | ||
Function | Parameter | Description |
addDefinition | net name expression | Creates a definition with the given name and expression in the model net |
withName | net name | Searches for a definition with name in the model net |
Object Methods | ||
Function | Parameter | Description |
getExpression | Returns the expression of the definition | |
setExpression | expression | Sets the expression of the definition |
Class Methods | ||
Function | Parameter | Description |
addMeasure | net name expression | Creates a measure with the given name and expression in the model net |
withName | net name | Searches for a measure with name in the model net |
Object Methods | ||
Function | Parameter | Description |
getExpression | Returns the expression of the measure | |
setExpression | expression | Sets the expression of the measure |
Class Methods | ||
Function | Parameter | Description |
add | net name priority weight | Creates an immediate transition with the given parameters in the model net |
withName | net name | Searches for an immediate transition with name in the model net |
Object Methods | ||
Function | Parameter | Description |
getName | Returns the name of the transition | |
getLocalGuard | Returns the local guard expression of the transition | |
getGlobalGuard | Returns the global guard expression of the transition | |
getPriority | Returns the priority of the immediate transition | |
getWeight | Returns the weight of the immediate transition | |
setLocalGuard | expression | Sets the local guard expression of the transition |
setGlobalGuard | expression | Sets the global guard expression of the transition |
setPriority | priority | Sets the priority of the immediate transition |
setWeight | weight | Sets the weight of the immediate transition |
Class Methods | ||
Function | Parameter | Description |
add | net name delay | Creates a timed transition with the given parameters in the model net |
withName | net name | Searches for a timed transition with name in the model net |
Object Methods | ||
Function | Parameter | Description |
getName | Returns the name of the transition | |
getLocalGuard | Returns the local guard expression of the transition | |
getGlobalGuard | Returns the global guard expression of the transition | |
getTimeFunction | Returns the time function of the timed transition | |
setLocalGuard | expression | Sets the local guard expression of the transition |
setGlobalGuard | expression | Sets the global guard expression of the transition |
setTimeFunction | expression | Sets the time function of the timed transition |
Class Methods | ||
Function | Parameter | Description |
add | net name | Creates a substitution transition with the given parameters in the model net |
withName | net name | Searches for a substitution transition with name in the model net |
Object Methods | ||
Function | Parameter | Description |
getName | Returns the name of the transition | |
getNumberOfReplications | Returns the number of replications of the substitution transition | |
getReplication | n | Returns the replication with number n of the substitution transition |
Class Methods | ||
Function | Parameter | Description |
create | substTrans | Creates a replication (submodel) for the substitution transition substTrans |
Object Methods | ||
Function | Parameter | Description |
addSlavePlace | place | Creates a representation of place in the replication |
Class Methods | ||
Function | Parameter | Description |
add | net place transition inscription | Creates an input arc with the given parameters in the model net |
Class Methods | ||
Function | Parameter | Description |
add | net transition place inscription | Creates an output arc with the given parameters in the model net |
Class Methods | ||
Function | Parameter | Description |
withName | net name | Searches for a module definition with name in the model net |
Object Methods | ||
Function | Parameter | Description |
createInstance | net instanceName | Creates a new module instance with name instanceName in the model net |
Object Methods | ||
Function | Parameter | Description |
connectInputPin | net pinName place inscription | Creates an output pin with the given parameters and connects this pin to place |
connectOutputPin | net pinName place inscription | Creates an input pin with the given parameters and connects this pin to place |
selectImplementation | implName | Chooses one implementation with the name implName from the module definition |
setParameterValue | name value | Sets the value of parameter name to value |
getParameterValue | name | Returns the value of parameter name |
Class Methods | ||
Function | Parameter | Description |
command | cmdLine | Starts the command cmdLine |
copyFile | source dest | Copies a source file to the destination dest |
runNet | net name startTime endTime | Starts the code generation and simulation of the model net with the given parameters |
Query | Result |
/data/person/firstname | < firstname > Michael < /firstname > |
< firstname > Armin < /firstname > |
Query | Result |
//lastname | < lastname > Knoke < /lastname > |
< lastname > Zimmermann < /lastname > |
Query | Result |
//firstname//lastname | < firstname > Michael < /firstname > |
< lastname > Knoke < /lastname > | |
< firstname > Armin < /firstname > | |
< lastname > Zimmermann < /lastname > |
Query | Result |
/data/person/* | < firstname > Michael < /firstname > |
< lastname > Knoke < /lastname > | |
< firstname > Armin < /firstname > | |
< lastname > Zimmermann < /lastname > |
Query | Result |
//lastname/parent::* | < person id='1' > < /person > |
< person id='2' > < /person > |
Query | Result |
//lastname/preceding-sibling::* | < firstname > Michael < /firstname > |
< firstname > Armin < /firstname > | |
//firstname/following-sibling::* | < lastname > Knoke < /lastname > |
< lastname > Zimmermann < /lastname > |
Query | Result |
/data/person/following::* | < person id='2' > |
< firstname > Armin < /firstname > | |
< lastname > Zimmermann < /lastname > | |
< /person > |
Query | Result |
/data/person/preceding::* | < person id='1' > |
< firstname > Michael < /firstname > | |
< lastname > Knoke < /lastname > | |
< /person > |
Query | Result |
//lastname[last()] | < lastname > Zimmermann < /lastname > |
Query | Result |
//person[@id='1'] | < person id='1' > |
< firstname > Michael < /firstname > | |
< lastname > Knoke < /lastname > | |
< /person > |
Query | Result |
//firstname[.='Armin'] | < firstname > Armin < /firstname > |
Function | Description |
normalize-space() | "Removes all spaces in the beginning and at the end, like the trim() function in Java. |
Example: normalize-space(' bbb ')= 'bbb' | |
count() | Counts the number of selected elements. |
name() | Returns the name of the current element. |
starts-with() | Returns TRUE if the value of the first parameter of the function starts with the value of the second parameter. |
Example: starts-with(name(), 'first') returns TRUE for the < firstname > element. | |
contains() | Returns TRUE if the first parameter value contains the second parameter value, like the starts-with function. |
Example: contains(name(), 'name') returns TRUE for all < firstname > and < lastname > elements. | |
string-length() | Returns the length of the given string. |
Example: string-length('test') return 4. | |