2 package org.ocera.orte.types;
8 * @author Lukas Pokorny (lukas_pokorny@centrum.cz)
9 * @author CTU FEE Prague - Department of Control Engineering (dce.felk.cvut.cz)
10 * @author Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
11 * @author dedication to Kj
14 * typedef enum ORTESendStatus {
19 * This program is free software; you can redistribute it and/or modify
20 * it under the terms of the GNU General Public License as published by
21 * the Free Software Foundation; either version 2 of the License, or
22 * (at your option) any later version.
24 * This program is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 * GNU General Public License for more details.
31 public class RecvStatus
33 // nemam to pridat k ostat konstantam????????
34 public static final int NEED_DATA = 0x01;
35 public static final int DEADLINE = 0x02;
40 public RecvStatus(int a)
43 System.out.println(":j: instance of RecvStatus created..");
47 public String toString()
53 public RecvStatus get()
59 public void set(int v)
66 public boolean needData()
68 if (this.value == NEED_DATA) return true;
72 public boolean deadline()
74 if (this.value == DEADLINE) return true;